Commit 861fdfc5 by Brian Coca

updated callbacks to properly test diff no matter if dict or list

parent 79ea6d3a
......@@ -110,7 +110,7 @@ class CallbackModule(CallbackBase):
self._display.banner(msg)
def v2_on_file_diff(self, result):
if 'diff' in result._result and result._result['diff'] != {}:
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):
......
......@@ -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 and result._result['diff'] != {}:
if 'diff' in result._result and result._result['diff']:
self._display.display(self._get_diff(result._result['diff']))
......@@ -103,7 +103,7 @@ class CallbackModule(CallbackBase):
self._display.banner(msg)
def v2_on_file_diff(self, result):
if 'diff' in result._result and result._result['diff'] != {}:
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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment