mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-03 04:34:24 -07:00
Merge pull request #15242 from dagwieers/silence-diff-output
On change in diff-mode we don't need to see file content in task output
This commit is contained in:
commit
3b667e48ff
1 changed files with 4 additions and 0 deletions
|
@ -99,6 +99,10 @@ class CallbackBase:
|
||||||
if not keep_invocation and self._display.verbosity < 3 and 'invocation' in result:
|
if not keep_invocation and self._display.verbosity < 3 and 'invocation' in result:
|
||||||
del abridged_result['invocation']
|
del abridged_result['invocation']
|
||||||
|
|
||||||
|
# remove diff information from screen output
|
||||||
|
if self._display.verbosity < 3 and 'diff' in result:
|
||||||
|
del abridged_result['diff']
|
||||||
|
|
||||||
return json.dumps(abridged_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):
|
def _handle_warnings(self, res):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue