Merge pull request #14889 from nitzmahone/fix_failed_when_blind_override
Fix blind override in failed_when
This commit is contained in:
commit
1c1f5e9f99
1 changed files with 1 additions and 1 deletions
|
@ -465,7 +465,7 @@ class TaskExecutor:
|
||||||
result['failed_when_result'] = result['failed'] = failed_when_result
|
result['failed_when_result'] = result['failed'] = failed_when_result
|
||||||
else:
|
else:
|
||||||
failed_when_result = False
|
failed_when_result = False
|
||||||
result['failed'] = False
|
result['failed'] = result.get('failed', False)
|
||||||
return failed_when_result
|
return failed_when_result
|
||||||
|
|
||||||
if 'ansible_facts' in result:
|
if 'ansible_facts' in result:
|
||||||
|
|
Loading…
Reference in a new issue