mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Minor tweak to ensure diff is not empty in callback for file diffs
This commit is contained in:
@@ -137,7 +137,7 @@ class CallbackModule(CallbackBase):
|
||||
def v2_on_file_diff(self, result):
|
||||
if result._task.loop and 'results' in result._result:
|
||||
for res in result._result['results']:
|
||||
if 'diff' in res:
|
||||
if 'diff' in res and res['diff']:
|
||||
self._display.display(self._get_diff(res['diff']))
|
||||
elif 'diff' in result._result and result._result['diff']:
|
||||
self._display.display(self._get_diff(result._result['diff']))
|
||||
|
||||
Reference in New Issue
Block a user