mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
Remove callback.CallbackBase._copy_result_exclude
Nothing seems to use this now.
Was added originally added in2d11cfab92f9d26448461b4bc81f466d1910a15e
but the code that used it was removed in
e02b98274b
This commit is contained in:
parent
39e86ae2bc
commit
c0331d50dc
2 changed files with 5 additions and 68 deletions
|
@ -72,18 +72,6 @@ class CallbackBase:
|
|||
''' helper for callbacks, so they don't all have to include deepcopy '''
|
||||
_copy_result = deepcopy
|
||||
|
||||
def _copy_result_exclude(self, result, exclude):
|
||||
values = []
|
||||
for e in exclude:
|
||||
values.append(getattr(result, e))
|
||||
setattr(result, e, None)
|
||||
|
||||
result_copy = deepcopy(result)
|
||||
for i,e in enumerate(exclude):
|
||||
setattr(result, e, values[i])
|
||||
|
||||
return result_copy
|
||||
|
||||
def _dump_results(self, result, indent=None, sort_keys=True, keep_invocation=False):
|
||||
if result.get('_ansible_no_log', False):
|
||||
return json.dumps(dict(censored="the output has been hidden due to the fact that 'no_log: true' was specified for this result"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue