From 175351f200cd5773de1bbc9a438a934679ff60e7 Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Tue, 8 Mar 2016 17:23:34 +0100 Subject: [PATCH] Little improvement in flow Don't get the hostname if it's not needed. --- lib/ansible/plugins/callback/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/callback/__init__.py b/lib/ansible/plugins/callback/__init__.py index 3a33ddbc4f..6bf7124398 100644 --- a/lib/ansible/plugins/callback/__init__.py +++ b/lib/ansible/plugins/callback/__init__.py @@ -334,8 +334,8 @@ class CallbackBase: self.playbook_on_stats(stats) def v2_on_file_diff(self, result): - host = result._host.get_name() if 'diff' in result._result: + host = result._host.get_name() self.on_file_diff(host, result._result['diff']) def v2_playbook_on_include(self, included_file):