From 4b4bcdedc11f1f66cf0a6a366cecf5b73c3c55a7 Mon Sep 17 00:00:00 2001 From: Dave Peticolas Date: Tue, 21 Aug 2012 13:43:05 -0700 Subject: [PATCH] Fix off-by-one serial count (causing infinite loop for serial == 1). --- lib/ansible/playbook/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/playbook/__init__.py b/lib/ansible/playbook/__init__.py index dc5455afa70..9b39e2f3225 100644 --- a/lib/ansible/playbook/__init__.py +++ b/lib/ansible/playbook/__init__.py @@ -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)