mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Remove auto-added invocation return value as it is not used by v2 and could leak sensitive data.
This commit is contained in:
parent
931792fc89
commit
6ce6b20268
2 changed files with 0 additions and 10 deletions
|
@ -441,13 +441,6 @@ class ActionBase:
|
||||||
if 'stdout' in data and 'stdout_lines' not in data:
|
if 'stdout' in data and 'stdout_lines' not in data:
|
||||||
data['stdout_lines'] = data.get('stdout', u'').splitlines()
|
data['stdout_lines'] = data.get('stdout', u'').splitlines()
|
||||||
|
|
||||||
# store the module invocation details back into the result
|
|
||||||
if self._task.async != 0:
|
|
||||||
data['invocation'] = dict(
|
|
||||||
module_args = module_args,
|
|
||||||
module_name = module_name,
|
|
||||||
)
|
|
||||||
|
|
||||||
self._display.debug("done with _execute_module (%s, %s)" % (module_name, module_args))
|
self._display.debug("done with _execute_module (%s, %s)" % (module_name, module_args))
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|
|
@ -54,10 +54,7 @@ class CallbackModule(CallbackBase):
|
||||||
data = 'omitted'
|
data = 'omitted'
|
||||||
else:
|
else:
|
||||||
data = data.copy()
|
data = data.copy()
|
||||||
invocation = data.pop('invocation', None)
|
|
||||||
data = json.dumps(data)
|
data = json.dumps(data)
|
||||||
if invocation is not None:
|
|
||||||
data = json.dumps(invocation) + " => %s " % data
|
|
||||||
|
|
||||||
path = os.path.join("/var/log/ansible/hosts", host)
|
path = os.path.join("/var/log/ansible/hosts", host)
|
||||||
now = time.strftime(self.TIME_FORMAT, time.localtime())
|
now = time.strftime(self.TIME_FORMAT, time.localtime())
|
||||||
|
|
Loading…
Reference in a new issue