Commit ca6db40c by James Cammarata

When serializing inventory, pop from the start of the hosts list

Fixes #8646
parent 47f4dec6
...@@ -677,7 +677,7 @@ class PlayBook(object): ...@@ -677,7 +677,7 @@ class PlayBook(object):
play_hosts = [] play_hosts = []
for x in range(serial): for x in range(serial):
if len(all_hosts) > 0: if len(all_hosts) > 0:
play_hosts.append(all_hosts.pop()) play_hosts.append(all_hosts.pop(0))
serialized_batch.append(play_hosts) serialized_batch.append(play_hosts)
task_errors = False task_errors = False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment