mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
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:
parent
b9d505d947
commit
47fafdc15b
@ -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']]
|
||||
|
Loading…
Reference in New Issue
Block a user