mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 22:30:22 -07:00
updated callbacks to properly test diff no matter if dict or list
This commit is contained in:
parent
79ea6d3a1e
commit
861fdfc5ba
3 changed files with 3 additions and 3 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue