1
0
Fork 0
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:
nitzmahone 2016-03-09 17:48:59 -08:00
parent 9318727021
commit dbff3a6bbc

View file

@ -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: