mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Correctly determine failed task state when checking results
Fixes #11172
This commit is contained in:
parent
a4ebee4b16
commit
73c956366e
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ class StrategyBase:
|
||||||
task_result = result[1]
|
task_result = result[1]
|
||||||
host = task_result._host
|
host = task_result._host
|
||||||
task = task_result._task
|
task = task_result._task
|
||||||
if result[0] == 'host_task_failed' or 'failed' in task_result._result:
|
if result[0] == 'host_task_failed' or task_result.is_failed():
|
||||||
if not task.ignore_errors:
|
if not task.ignore_errors:
|
||||||
debug("marking %s as failed" % host.name)
|
debug("marking %s as failed" % host.name)
|
||||||
iterator.mark_host_failed(host)
|
iterator.mark_host_failed(host)
|
||||||
|
|
Loading…
Reference in a new issue