1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix off-by-one serial count (causing infinite loop for serial == 1).

This commit is contained in:
Dave Peticolas 2012-08-21 13:43:05 -07:00
parent 1ae018ce94
commit 4b4bcdedc1

View file

@ -312,7 +312,7 @@ class PlayBook(object):
# do N forks all the way through before moving to next
while len(all_hosts) > 0:
play_hosts = []
for x in range(1, play.serial):
for x in range(play.serial):
if len(all_hosts) > 0:
play_hosts.append(all_hosts.pop())
serialized_batch.append(play_hosts)