Skip to content

Commit

Permalink
Modify 'cli_facts.py' to return dict for 'self._cliargs' in order to …
Browse files Browse the repository at this point in the history
…fix stdout_callback (#43)

Co-authored-by: Mike Krasnianskyi <[email protected]>
  • Loading branch information
mikekrasn and Mike Krasnianskyi authored Mar 18, 2020
1 parent e6252ad commit 4b2c4ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _dependencies/callback_plugins/cli_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <class 'ansible.inventory.host.Host'> 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)

0 comments on commit 4b2c4ca

Please sign in to comment.