mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 22:30:22 -07:00
Don't remove invocation from the result in the log callback
Fixes #2064.
This commit is contained in:
parent
85fb8494c5
commit
f12dbd431a
1 changed files with 1 additions and 0 deletions
|
@ -31,6 +31,7 @@ def log(host, category, data):
|
||||||
# avoid logging extraneous data from facts
|
# avoid logging extraneous data from facts
|
||||||
data = 'omitted'
|
data = 'omitted'
|
||||||
else:
|
else:
|
||||||
|
data = data.copy()
|
||||||
invocation = data.pop('invocation', None)
|
invocation = data.pop('invocation', None)
|
||||||
data = json.dumps(data)
|
data = json.dumps(data)
|
||||||
if invocation is not None:
|
if invocation is not None:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue