1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

avoids printing blank diffs

fixes #10147 fixes #9471
This commit is contained in:
Brian Coca 2015-07-28 15:47:52 -04:00
parent 5cf2781528
commit a8b2b5b0c9
2 changed files with 2 additions and 2 deletions

View file

@ -109,7 +109,7 @@ class CallbackModule(CallbackBase):
self._display.banner(msg)
def v2_on_file_diff(self, result):
if 'diff' in result._result:
if 'diff' in result._result and result._result['diff'] != {}:
self._display.display(self._get_diff(result._result['diff']))
def v2_playbook_item_on_ok(self, result):

View file

@ -77,5 +77,5 @@ class CallbackModule(CallbackBase):
self._display.display("%s | UNREACHABLE!" % result._host.get_name(), color='yellow')
def v2_on_file_diff(self, result):
if 'diff' in result._result:
if 'diff' in result._result and result._result['diff'] != {}:
self._display.display(self._get_diff(result._result['diff']))