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

finalized changed to use abridtged_result instead of result

removed no longer defined no_log
This commit is contained in:
Brian Coca 2015-10-23 22:54:18 -04:00
parent b109b83809
commit 25e3fe04a8

View file

@ -72,10 +72,10 @@ class CallbackBase:
del abridged_result['invocation']
# remove invocation info unless its very very verbose
if 'invocation' in result and (self._display.verbosity < 3 or no_log):
del result['invocation']
if 'invocation' in abridged_result and self._display.verbosity < 3:
del abridged_result['invocation']
return json.dumps(result, indent=indent, ensure_ascii=False, sort_keys=sort_keys)
return json.dumps(abridged_result, indent=indent, ensure_ascii=False, sort_keys=sort_keys)
def _handle_warnings(self, res):
''' display warnings, if enabled and any exist in the result '''