mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Make sure that minion IDs are strings
This commit is contained in:
parent
51c3cec5d7
commit
467ba64612
1 changed files with 5 additions and 1 deletions
|
@ -111,7 +111,11 @@ class Batch(object):
|
|||
else:
|
||||
for i in range(bnum - len(active)):
|
||||
if to_run:
|
||||
next_.append(to_run.pop())
|
||||
minion_id = to_run.pop()
|
||||
if isinstance(minion_id, dict):
|
||||
next_.append(minion_id.keys()[0])
|
||||
else:
|
||||
next_.append(minion_id)
|
||||
|
||||
active += next_
|
||||
args[0] = next_
|
||||
|
|
Loading…
Add table
Reference in a new issue