mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
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:
committed by
Toshio Kuratomi
parent
41685fb516
commit
4fb9e54c50
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user