From fa07604d43f9f75109f29193360ff34b8c0eb956 Mon Sep 17 00:00:00 2001 From: Stephen Fromm Date: Wed, 27 Feb 2013 13:26:29 -0800 Subject: [PATCH] Fix CliRunnerCallbacks.on_file_diff in callbacks.py When running ansible -C, I get a traceback that ends with AttributeError: Values instance has no attribute 'diff' This fixes on_file_diff to behave similar to PlaybookRunnerCallbacks.on_file_diff(). --- lib/ansible/callbacks.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ansible/callbacks.py b/lib/ansible/callbacks.py index e0e1630f79..3e72ece77c 100644 --- a/lib/ansible/callbacks.py +++ b/lib/ansible/callbacks.py @@ -285,8 +285,7 @@ class CliRunnerCallbacks(DefaultRunnerCallbacks): utils.write_tree_file(self.options.tree, host, utils.jsonify(result2,format=True)) def on_file_diff(self, host, diff): - if self.options.diff: - print utils.get_diff(diff) + print utils.get_diff(diff) super(CliRunnerCallbacks, self).on_file_diff(host, diff) ########################################################################