mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Fix KeyError on minion startup if ext_job_cache option does not exist
This commit is contained in:
parent
e0d8034665
commit
9afc6aa9c6
@ -899,7 +899,7 @@ class Minion(object):
|
|||||||
Execute a state run based on information set in the minion config file
|
Execute a state run based on information set in the minion config file
|
||||||
'''
|
'''
|
||||||
if self.opts['startup_states']:
|
if self.opts['startup_states']:
|
||||||
data = {'jid': 'req', 'ret': self.opts['ext_job_cache']}
|
data = {'jid': 'req', 'ret': self.opts.get('ext_job_cache', '')}
|
||||||
if self.opts['startup_states'] == 'sls':
|
if self.opts['startup_states'] == 'sls':
|
||||||
data['fun'] = 'state.sls'
|
data['fun'] = 'state.sls'
|
||||||
data['arg'] = [self.opts['sls_list']]
|
data['arg'] = [self.opts['sls_list']]
|
||||||
|
Loading…
Reference in New Issue
Block a user