From bc7d49003728a71c25a825cffb76894c88b2afc9 Mon Sep 17 00:00:00 2001 From: Mike Krasnianskyi Date: Wed, 18 Mar 2020 08:52:48 +0000 Subject: [PATCH] Modify 'cli_facts.py' to return dict for 'self._cliargs' in order to fix stdout_callback --- _dependencies/callback_plugins/cli_facts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_dependencies/callback_plugins/cli_facts.py b/_dependencies/callback_plugins/cli_facts.py index 31b2aa6b..6620ca80 100644 --- a/_dependencies/callback_plugins/cli_facts.py +++ b/_dependencies/callback_plugins/cli_facts.py @@ -54,5 +54,5 @@ def v2_playbook_on_play_start(self, play): # Ansible 2.9 (https://github.com/ansible/ansible/pull/58400) changed the 'host' type in ansible/vars/manager.py::set_host_variable() from type to type string. if CLI.version_info()['major'] >= 2 and CLI.version_info()['minor'] >= 9: host = str(host) - variable_manager.set_host_variable(host, "cliargs", self._cliargs) + variable_manager.set_host_variable(host, "cliargs", dict(self._cliargs)) variable_manager.set_host_variable(host, "argv", self._argv)