From 646536643fdf027e2fcf02af2221f60b31e404df Mon Sep 17 00:00:00 2001 From: Ganesh Nalawade Date: Thu, 4 Jun 2020 22:30:11 +0530 Subject: [PATCH] Use fqcr from command module invocation using shell module (#69790) * Use fqcr from command module invocation using shell module Fixes https://github.com/ansible/ansible/issues/69788 Use fully qualified collection reference while invoking command module from shell module * Fox review comment --- changelogs/fragments/69788_fqcr_command_shell.yml | 3 +++ lib/ansible/plugins/action/shell.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/69788_fqcr_command_shell.yml diff --git a/changelogs/fragments/69788_fqcr_command_shell.yml b/changelogs/fragments/69788_fqcr_command_shell.yml new file mode 100644 index 00000000000..9d2db44e28d --- /dev/null +++ b/changelogs/fragments/69788_fqcr_command_shell.yml @@ -0,0 +1,3 @@ +--- +bugfixes: + - "Use fqcr from command module invocation using shell module. Fixes https://github.com/ansible/ansible/issues/69788" \ No newline at end of file diff --git a/lib/ansible/plugins/action/shell.py b/lib/ansible/plugins/action/shell.py index b2ebe174971..d383535904c 100644 --- a/lib/ansible/plugins/action/shell.py +++ b/lib/ansible/plugins/action/shell.py @@ -17,7 +17,7 @@ class ActionModule(ActionBase): self._task.action = 'command' self._task.args['_uses_shell'] = True - command_action = self._shared_loader_obj.action_loader.get('command', + command_action = self._shared_loader_obj.action_loader.get('ansible.legacy.command', task=self._task, connection=self._connection, play_context=self._play_context,