Merge pull request #39791 from gtmanfred/2016.3

load runners if role is master
This commit is contained in:
Mike Place 2017-03-02 12:43:41 -07:00 committed by GitHub
commit 53341cf152

View File

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