mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
Removing explicit setting of failed/failed_when
This commit is contained in:
parent
6a85da7e0c
commit
4e528e9535
2 changed files with 3 additions and 7 deletions
|
@ -463,10 +463,6 @@ class TaskExecutor:
|
|||
cond.when = self._task.failed_when
|
||||
failed_when_result = cond.evaluate_conditional(templar, vars_copy)
|
||||
result['failed_when_result'] = result['failed'] = failed_when_result
|
||||
else:
|
||||
failed_when_result = False
|
||||
result['failed'] = result.get('failed', False)
|
||||
return failed_when_result
|
||||
|
||||
if 'ansible_facts' in result:
|
||||
vars_copy.update(result['ansible_facts'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue