Commit f4ef94cc by Michael DeHaan

Merge pull request #925 from jdavisp3/serial-fix

Fix off-by-one serial count (causing infinite loop for serial == 1).
parents 1004e56d 4b4bcded
......@@ -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)
......
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