mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Little improvement in flow
Don't get the hostname if it's not needed.
This commit is contained in:
@@ -334,8 +334,8 @@ class CallbackBase:
|
|||||||
self.playbook_on_stats(stats)
|
self.playbook_on_stats(stats)
|
||||||
|
|
||||||
def v2_on_file_diff(self, result):
|
def v2_on_file_diff(self, result):
|
||||||
host = result._host.get_name()
|
|
||||||
if 'diff' in result._result:
|
if 'diff' in result._result:
|
||||||
|
host = result._host.get_name()
|
||||||
self.on_file_diff(host, result._result['diff'])
|
self.on_file_diff(host, result._result['diff'])
|
||||||
|
|
||||||
def v2_playbook_on_include(self, included_file):
|
def v2_playbook_on_include(self, included_file):
|
||||||
|
|||||||
Reference in New Issue
Block a user