mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
load runners if role is master
This commit is contained in:
parent
f829d6f9fc
commit
3ab4f843bf
1 changed files with 4 additions and 1 deletions
|
@ -636,7 +636,10 @@ class Schedule(object):
|
|||
# This also needed for ZeroMQ transport to reset all functions
|
||||
# context data that could keep paretns connections. ZeroMQ will
|
||||
# hang on polling parents connections from the child process.
|
||||
self.functions = salt.loader.minion_mods(self.opts)
|
||||
if self.opts['__role'] == 'master':
|
||||
self.functions = salt.loader.runner(self.opts)
|
||||
else:
|
||||
self.functions = salt.loader.minion_mods(self.opts)
|
||||
self.returners = salt.loader.returners(self.opts, self.functions)
|
||||
ret = {'id': self.opts.get('id', 'master'),
|
||||
'fun': func,
|
||||
|
|
Loading…
Add table
Reference in a new issue