def _get_opts(localconfig=None):
    opts = copy.deepcopy(__opts__)
    if localconfig:
        opts = salt.config.minion_config(localconfig, defaults=opts)
    return opts
Return a copy of the opts for use, optionally load a local config on top
dataset/ETHPy150Open saltstack/salt/salt/modules/state.py/_get_opts