def _get_opts(localconfig=None):
 opts = copy.deepcopy(__opts__)
 if localconfig:
  opts = salt.config.minion_config(localconfig, defaults=opts)
 return opts

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 .