mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #45761 from gtmanfred/2017.7
generate a jid for cache_jobs on the minion
This commit is contained in:
commit
96e9232cc2
1 changed files with 3 additions and 1 deletions
|
@ -1761,7 +1761,9 @@ class Minion(MinionBase):
|
|||
load['out'] = oput
|
||||
if self.opts['cache_jobs']:
|
||||
# Local job cache has been enabled
|
||||
salt.utils.minion.cache_jobs(self.opts, load['jid'], ret)
|
||||
if ret['jid'] == 'req':
|
||||
ret['jid'] = salt.utils.jid.gen_jid()
|
||||
salt.utils.minion.cache_jobs(self.opts, ret['jid'], ret)
|
||||
|
||||
if not self.opts['pub_ret']:
|
||||
return ''
|
||||
|
|
Loading…
Add table
Reference in a new issue