diff options
author | Brian Coca <brian.coca+git@gmail.com> | 2016-01-04 19:58:06 -0500 |
---|---|---|
committer | Brian Coca <brian.coca+git@gmail.com> | 2016-01-05 14:27:33 -0500 |
commit | 3d608ef9fa63b7a47e1e4527e2b719cb7dec1bb2 (patch) | |
tree | 47b799c591dbb4f807015cc52e307decd6e383b0 | |
parent | c14e099dd790c65cfc7d16aa9e28ffb0060c6dd9 (diff) | |
download | ansible-3d608ef9fa63b7a47e1e4527e2b719cb7dec1bb2.tar.gz |
simplified diff handling in callback
no need for the copy or other complexity
-rw-r--r-- | lib/ansible/plugins/callback/default.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/ansible/plugins/callback/default.py b/lib/ansible/plugins/callback/default.py index e515945bba..276ac435f4 100644 --- a/lib/ansible/plugins/callback/default.py +++ b/lib/ansible/plugins/callback/default.py @@ -137,11 +137,8 @@ class CallbackModule(CallbackBase): def v2_on_file_diff(self, result): if result._task.loop and 'results' in result._result: for res in result._result['results']: - newres = self._copy_result(result) - res['item'] = self._get_item(res) - newres._result = res - - self.v2_on_file_diff(newres) + if 'diff' in res: + self._display.display(self._get_diff(res['diff'])) elif 'diff' in result._result and result._result['diff']: self._display.display(self._get_diff(result._result['diff'])) |