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

Don't remove invocation from the result in the log callback

Fixes #2064.
This commit is contained in:
Daniel Hokka Zakrisson 2013-02-12 22:26:30 +01:00
parent 85fb8494c5
commit f12dbd431a

View file

@ -31,6 +31,7 @@ def log(host, category, data):
# avoid logging extraneous data from facts
data = 'omitted'
else:
data = data.copy()
invocation = data.pop('invocation', None)
data = json.dumps(data)
if invocation is not None: