mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add config option so old-style proxymodules will keep loading
This commit is contained in:
parent
3d6ed5b7ff
commit
f9461ff298
1 changed files with 4 additions and 0 deletions
|
@ -2524,6 +2524,10 @@ class ProxyMinion(Minion):
|
|||
# Then load the proxy module
|
||||
self.proxy = salt.loader.proxy(self.opts)
|
||||
|
||||
# Check config 'add_proxymodule_to_opts' Default to False in Boron
|
||||
if self.opts['add_proxymodule_to_opts']:
|
||||
self.opts['proxymodule'] = self.proxy
|
||||
|
||||
# And re-load the modules so the __proxy__ variable gets injected
|
||||
self.functions, self.returners, self.function_errors = self._load_modules(proxy=self.proxy)
|
||||
self.functions.pack['__proxy__'] = self.proxy
|
||||
|
|
Loading…
Add table
Reference in a new issue