mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 14:40:19 -07:00
Restore the automatic addition of invocation to the output
Revert "Remove auto-added invocation return value as it is not used by v2 and could leak sensitive data." This reverts commit6ce6b20268
. Remove the note that invocation was removed as we've now restored it. Revert "keyword not in ubuntu 14.04" This reverts commit5c01622457
. Revert "remove invocation keyword check" This reverts commit5177cb3f74
.
This commit is contained in:
parent
498c27d09a
commit
6b6d03290a
5 changed files with 12 additions and 1 deletions
|
@ -58,7 +58,10 @@ class CallbackModule(CallbackBase):
|
|||
data = 'omitted'
|
||||
else:
|
||||
data = data.copy()
|
||||
invocation = data.pop('invocation', None)
|
||||
data = json.dumps(data)
|
||||
if invocation is not None:
|
||||
data = json.dumps(invocation) + " => %s " % data
|
||||
|
||||
path = os.path.join("/var/log/ansible/hosts", host)
|
||||
now = time.strftime(self.TIME_FORMAT, time.localtime())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue