mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-02 06:19:10 -07:00
Fixing bugs in play iteration and strategies
* Fixed a bug in PlayIterator when ITERATING_ALWAYS, where the block was advanced but the incorrect data structure elements were cleared * Cleaned up the logic of is_failed() in PlayIterator * Fixed a bug in the free strategy which had not been updated to use the base strategy _execute_meta() method * Stopped strategies from using is_failed() to determine if tasks should still be fetched for a host Fixes #14040
This commit is contained in:
parent
8039ceee0f
commit
699a854bf3
3 changed files with 16 additions and 25 deletions
|
@ -54,8 +54,7 @@ class StrategyModule(StrategyBase):
|
|||
host_tasks = {}
|
||||
display.debug("building list of next tasks for hosts")
|
||||
for host in hosts:
|
||||
if not iterator.is_failed(host):
|
||||
host_tasks[host.name] = iterator.get_next_task_for_host(host, peek=True)
|
||||
host_tasks[host.name] = iterator.get_next_task_for_host(host, peek=True)
|
||||
display.debug("done building task lists")
|
||||
|
||||
num_setups = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue