mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-24 02:45:12 +00:00
library: Return module params for debugging
Set invocation as suggested in https://docs.ansible.com/ansible/latest/reference_appendices/common_return_values.html#invocation to report how the internal module was invoked.
This commit is contained in:
parent
371d6f4679
commit
f72fc394ea
1 changed files with 1 additions and 0 deletions
|
|
@ -1572,6 +1572,7 @@ class RunEnvironmentAnsible(RunEnvironment):
|
|||
kwargs["warnings"] = warning_logs
|
||||
stderr = "\n".join(debug_logs) + "\n"
|
||||
kwargs["stderr"] = stderr
|
||||
kwargs["invocation"] = {"params": self.module.params}
|
||||
return kwargs
|
||||
|
||||
def exit_json(self, connections, changed=False, **kwargs):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue