Commit d1b43712 by James Cammarata

Correctly evaluate changed/failed for tasks using loops

parent 860a96cf
...@@ -83,9 +83,9 @@ class TaskExecutor: ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment