calculate max fail against all hosts in batch

currently it is doing only from the 'active' hosts in the batch which means
the percentage goes up as hosts fail instead of staying the same.
added debug info for max fail

fixes #32255
This commit is contained in:
Brian Coca 2017-10-30 16:39:15 -04:00 committed by Toshio Kuratomi
commit 4fb9e54c50
3 changed files with 13 additions and 23 deletions

View file

@ -203,7 +203,9 @@ class PlayIterator:
self._host_states = {}
start_at_matched = False
for host in inventory.get_hosts(self._play.hosts):
batch = inventory.get_hosts(self._play.hosts)
self.batch_size = len(batch)
for host in batch:
self._host_states[host.name] = HostState(blocks=self._blocks)
# if we're looking to start at a specific task, iterate through
# the tasks for this host until we find the specified task