From 3763283d018f1fec2b773c97a6f6ca3edfdbddae Mon Sep 17 00:00:00 2001 From: Rene Moser Date: Wed, 26 Oct 2016 20:59:43 +0200 Subject: [PATCH] tasks_queue_manager: fix fork calculation if serial in % --- lib/ansible/executor/task_queue_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/executor/task_queue_manager.py b/lib/ansible/executor/task_queue_manager.py index 2e6948f1e0c..08b7dd0f671 100644 --- a/lib/ansible/executor/task_queue_manager.py +++ b/lib/ansible/executor/task_queue_manager.py @@ -222,7 +222,7 @@ class TaskQueueManager: ) # Fork # of forks, # of hosts or serial, whichever is lowest - num_hosts = len(self._inventory.get_hosts(new_play.hosts)) + num_hosts = len(self._inventory.get_hosts(new_play.hosts, ignore_restrictions=True)) max_serial = 0 if new_play.serial: