mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Munge retcode into return data for batching
This commit is contained in:
parent
a642a995dc
commit
db81afc035
1 changed files with 3 additions and 0 deletions
|
@ -223,6 +223,9 @@ class Batch(object):
|
|||
active.remove(minion)
|
||||
if bwait:
|
||||
wait.append(datetime.now() + timedelta(seconds=bwait))
|
||||
# Munge retcode into return data
|
||||
if 'retcode' in data and isinstance(data['ret'], dict) and 'retcode' not in data['ret']:
|
||||
data['ret']['retcode'] = data['retcode']
|
||||
if self.opts.get('raw'):
|
||||
ret[minion] = data
|
||||
yield data
|
||||
|
|
Loading…
Add table
Reference in a new issue