1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

fixed bad condition hiding results

This commit is contained in:
Brian Coca 2016-09-07 12:55:03 -04:00
parent ef7e2f7fbc
commit 65c373c55a

View file

@ -368,7 +368,7 @@ class StrategyBase:
if self._diff:
self._tqm.send_callback('v2_on_file_diff', task_result)
if original_task.action in ['include', 'include_role']:
if original_task.action not in ['include', 'include_role']:
self._tqm._stats.increment('ok', original_host.name)
if 'changed' in task_result._result and task_result._result['changed']:
self._tqm._stats.increment('changed', original_host.name)