mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-04 07:19:10 -07:00
removed no_log redundant code
This commit is contained in:
parent
b97887ba41
commit
7ba4f5ee12
1 changed files with 1 additions and 5 deletions
|
@ -56,10 +56,6 @@ class CallbackBase:
|
||||||
if not indent and '_ansible_verbose_always' in result and result['_ansible_verbose_always']:
|
if not indent and '_ansible_verbose_always' in result and result['_ansible_verbose_always']:
|
||||||
indent = 4
|
indent = 4
|
||||||
|
|
||||||
# no_log trumps invocation
|
|
||||||
if '_ansible_no_log' in result and result['_ansible_no_log']:
|
|
||||||
keep_invocation = False
|
|
||||||
|
|
||||||
# All result keys stating with _ansible_ are internal, so remove them from the result before we output anything.
|
# All result keys stating with _ansible_ are internal, so remove them from the result before we output anything.
|
||||||
abridged_result = strip_internal_keys(result)
|
abridged_result = strip_internal_keys(result)
|
||||||
|
|
||||||
|
@ -111,7 +107,7 @@ class CallbackBase:
|
||||||
ret.append(">> the files are different, but the diff library cannot compare unicode strings\n\n")
|
ret.append(">> the files are different, but the diff library cannot compare unicode strings\n\n")
|
||||||
|
|
||||||
def _get_item(self, result):
|
def _get_item(self, result):
|
||||||
if '_ansible_no_log' in result and result['_ansible_no_log']:
|
if result.get('_ansible_no_log', False):
|
||||||
item = "(censored due to no_log)"
|
item = "(censored due to no_log)"
|
||||||
else:
|
else:
|
||||||
item = result.get('item', None)
|
item = result.get('item', None)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue