More progress toward __proxy__

This commit is contained in:
C. R. Oldham 2015-10-06 09:50:20 -06:00
parent 1a229c17b2
commit 4432499b45
3 changed files with 6 additions and 14 deletions

View file

@ -180,7 +180,10 @@ def minion_mods(
if utils is None:
utils = {}
if proxy is None:
log.debug('minion_mods called with proxy empty')
proxy = {}
else:
log.debug('minion_mods called with proxy NOT empty')
if not whitelist:
whitelist = opts.get('whitelist_modules', None)
ret = LazyLoader(_module_dirs(opts, 'modules', 'module'),

View file

@ -44,19 +44,6 @@ def get_all():
return __proxy__[proxy_fn]()
def list_():
'''
Return a list of all available services
CLI Example:
.. code-block:: bash
salt '*' service.list
'''
return get_all()
def list_():
'''
Return a list of all available services.

View file

@ -738,7 +738,9 @@ class State(object):
'''
log.info('Loading fresh modules for state activity')
self.utils = salt.loader.utils(self.opts)
self.functions = salt.loader.minion_mods(self.opts, self.state_con, utils=self.utils, proxy=proxy)
self.functions = salt.loader.minion_mods(self.opts, self.state_con,
utils=self.utils,
proxy=proxy)
if isinstance(data, dict):
if data.get('provider', False):
if isinstance(data['provider'], str):