mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
loader.proxy: call _modules_dirs
only once
Instead of assigning it to an unused variable, pass the function's return value to LazyLoader directly.
This commit is contained in:
parent
4ddc87157a
commit
55a76be6c1
1 changed files with 0 additions and 1 deletions
|
@ -254,7 +254,6 @@ def proxy(opts, functions, whitelist=None, loaded_base_name=None):
|
|||
'''
|
||||
Returns the proxy module for this salt-proxy-minion
|
||||
'''
|
||||
dirs = _module_dirs(opts, 'proxy', 'proxy')
|
||||
return LazyLoader(_module_dirs(opts, 'proxy', 'proxy'),
|
||||
opts,
|
||||
tag='proxy',
|
||||
|
|
Loading…
Add table
Reference in a new issue