mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-22 22:11:44 -07: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:
parent
41685fb516
commit
4fb9e54c50
3 changed files with 13 additions and 23 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue