Respect ext_job_cache option on startup_states

It's especially useful to have a returner set when automatic
highstate is executed.
Set returner as specified in ext_job_cache instead of empty string.
This commit is contained in:
Johnny Bergström 2013-10-02 15:33:24 +02:00
parent b9d505d947
commit 47fafdc15b

View File

@ -851,7 +851,7 @@ class Minion(object):
Execute a state run based on information set in the minion config file
'''
if self.opts['startup_states']:
data = {'jid': 'req', 'ret': ''}
data = {'jid': 'req', 'ret': self.opts['ext_job_cache']}
if self.opts['startup_states'] == 'sls':
data['fun'] = 'state.sls'
data['arg'] = [self.opts['sls_list']]