Make on_file_diff callback item-aware

This commit is contained in:
James Cammarata 2015-12-09 14:51:43 -05:00
parent 04d74fd680
commit 14e19c239d
4 changed files with 22 additions and 4 deletions

View file

@ -221,7 +221,7 @@ class StrategyBase:
self._tqm._stats.increment('changed', host.name)
self._tqm.send_callback('v2_runner_on_ok', task_result)
if self._diff and 'diff' in task_result._result:
if self._diff:
self._tqm.send_callback('v2_on_file_diff', task_result)
self._pending_results -= 1