Correctly evaluate changed/failed for tasks using loops
This commit is contained in:
parent
860a96cf70
commit
d1b4371287
1 changed files with 2 additions and 2 deletions
|
@ -83,9 +83,9 @@ class TaskExecutor:
|
|||
changed = False
|
||||
failed = False
|
||||
for item in item_results:
|
||||
if 'changed' in item:
|
||||
if 'changed' in item and item['changed']:
|
||||
changed = True
|
||||
if 'failed' in item:
|
||||
if 'failed' in item and item['failed']:
|
||||
failed = True
|
||||
|
||||
# create the overall result item, and set the changed/failed
|
||||
|
|
Loading…
Reference in a new issue