mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 14:40:19 -07:00
Add a helper to PlayIterator to recursively find the active state (#40847)
Also fixes a discovered bug in block rescue detection related to inserting the ansible_failed_{result|task} variables when the rescue is in a nested block.
This commit is contained in:
parent
20f93816d6
commit
ee519e0d0a
2 changed files with 13 additions and 1 deletions
|
@ -493,7 +493,7 @@ class StrategyBase:
|
|||
if iterator.is_failed(original_host) and state and state.run_state == iterator.ITERATING_COMPLETE:
|
||||
self._tqm._failed_hosts[original_host.name] = True
|
||||
|
||||
if state and state.run_state == iterator.ITERATING_RESCUE:
|
||||
if state and iterator.get_active_state(state).run_state == iterator.ITERATING_RESCUE:
|
||||
self._variable_manager.set_nonpersistent_facts(
|
||||
original_host,
|
||||
dict(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue