From eb6c9c1cc81f70fcff781077253ae940f7701940 Mon Sep 17 00:00:00 2001 From: Till Maas Date: Thu, 25 Jun 2020 12:42:52 +0200 Subject: [PATCH] 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. --- library/network_connections.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/network_connections.py b/library/network_connections.py index f218483..a299e48 100644 --- a/library/network_connections.py +++ b/library/network_connections.py @@ -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):