mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Batch.run() should return minion name as
- When using Batch.run() (or client.cmd_batch()) there was no way to tell from what minion the returned date came from. - Batch.run() returns a dictionary which has minion id as a key, and returned data as a value
This commit is contained in:
parent
4bb4fa6617
commit
cb59d41b2e
@ -119,7 +119,7 @@ class Batch(object):
|
||||
pass
|
||||
for minion, data in parts.items():
|
||||
active.remove(minion)
|
||||
yield data['ret']
|
||||
yield {minion: data['ret']}
|
||||
ret[minion] = data['ret']
|
||||
data[minion] = data.pop('ret')
|
||||
if 'out' in data:
|
||||
|
Loading…
Reference in New Issue
Block a user