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

Fixes #8646
pull/4420/head
James Cammarata 2014-08-19 09:02:50 -05:00
parent 47f4dec676
commit ca6db40cb4
1 changed files with 1 additions and 1 deletions

View File

@ -677,7 +677,7 @@ class PlayBook(object):
play_hosts = []
for x in range(serial):
if len(all_hosts) > 0:
play_hosts.append(all_hosts.pop())
play_hosts.append(all_hosts.pop(0))
serialized_batch.append(play_hosts)
task_errors = False