mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
generate a jid for cache_jobs on the minion
If the load is passed back to the master with a jid of 'req', the master does a 'prep_jid' and uses that jid to store the data. The minion would just save it to the cache as 'req'. This will at least generate the jid for the minions cache.
This commit is contained in:
parent
395d6f5c91
commit
280767ed57
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