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
|
changed = False
|
||||||
failed = False
|
failed = False
|
||||||
for item in item_results:
|
for item in item_results:
|
||||||
if 'changed' in item:
|
if 'changed' in item and item['changed']:
|
||||||
changed = True
|
changed = True
|
||||||
if 'failed' in item:
|
if 'failed' in item and item['failed']:
|
||||||
failed = True
|
failed = True
|
||||||
|
|
||||||
# create the overall result item, and set the changed/failed
|
# create the overall result item, and set the changed/failed
|
||||||
|
|
Loading…
Reference in a new issue