mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #38668 from terminalmage/issue38604
Fix proposal for #38604
This commit is contained in:
commit
f3ae3cd5c8
1 changed files with 5 additions and 2 deletions
|
@ -223,12 +223,15 @@ 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
|
||||
else:
|
||||
ret[minion] = data
|
||||
yield {minion: data}
|
||||
ret[minion] = data['ret']
|
||||
yield {minion: data['ret']}
|
||||
if not self.quiet:
|
||||
ret[minion] = data['ret']
|
||||
data[minion] = data.pop('ret')
|
||||
|
|
Loading…
Add table
Reference in a new issue