mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
More progress toward __proxy__
This commit is contained in:
parent
1a229c17b2
commit
4432499b45
3 changed files with 6 additions and 14 deletions
|
@ -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'),
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue