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
This commit is contained in:
parent
247e43b252
commit
646536643f
2 changed files with 4 additions and 1 deletions
3
changelogs/fragments/69788_fqcr_command_shell.yml
Normal file
3
changelogs/fragments/69788_fqcr_command_shell.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
bugfixes:
|
||||
- "Use fqcr from command module invocation using shell module. Fixes https://github.com/ansible/ansible/issues/69788"
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue