library: Rename invocation return value

Since `invocation` is an Ansible special value that is set for
triple verbosity, it is now visible for smaller verbosity. Therefore
rename it to `_invocation`, which seems to work with less verbosity.
Also adjust the content to match the regular `invocation` style.
This commit is contained in:
Till Maas 2020-06-25 12:42:52 +02:00
parent 6eb2d1d938
commit eb6c9c1cc8

View file

@ -1599,7 +1599,7 @@ class RunEnvironmentAnsible(RunEnvironment):
kwargs["warnings"] = warning_logs
stderr = "\n".join(debug_logs) + "\n"
kwargs["stderr"] = stderr
kwargs["invocation"] = {"params": self.module.params}
kwargs["_invocation"] = {"module_args": self.module.params}
return kwargs
def exit_json(self, connections, changed=False, **kwargs):