mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix blind override in failed_when
caused all task failures to be success
This commit is contained in:
parent
9318727021
commit
dbff3a6bbc
1 changed files with 1 additions and 1 deletions
|
@ -465,7 +465,7 @@ class TaskExecutor:
|
|||
result['failed_when_result'] = result['failed'] = failed_when_result
|
||||
else:
|
||||
failed_when_result = False
|
||||
result['failed'] = False
|
||||
result['failed'] = result.get('failed', False)
|
||||
return failed_when_result
|
||||
|
||||
if 'ansible_facts' in result:
|
||||
|
|
Loading…
Reference in a new issue