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:
Daniel Hahler 2015-10-05 23:03:50 +02:00
parent 4ddc87157a
commit 55a76be6c1

View file

@ -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',