Remove auto-added invocation return value as it is not used by v2 and could leak sensitive data.

This commit is contained in:
Toshio Kuratomi 2015-10-19 09:07:47 -07:00
parent 931792fc89
commit 6ce6b20268
2 changed files with 0 additions and 10 deletions

View file

@ -54,10 +54,7 @@ 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())