mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix command variable usage in CmdRunner (#4903)
* Fix command variable usage * Add changelog fragment for cmd-runner bugfix (#4903)
This commit is contained in:
parent
2dcdd2faca
commit
265c052c27
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/4903-cmdrunner-bugfix.yaml
Normal file
2
changelogs/fragments/4903-cmdrunner-bugfix.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- cmd_runner module utils - fix bug caused by using the ``command`` variable instead of ``self.command`` when looking for binary path (https://github.com/ansible-collections/community.general/pull/4903).
|
|
@ -191,7 +191,7 @@ class CmdRunner(object):
|
|||
environ_update = {}
|
||||
self.environ_update = environ_update
|
||||
|
||||
self.command[0] = module.get_bin_path(command[0], opt_dirs=path_prefix, required=True)
|
||||
self.command[0] = module.get_bin_path(self.command[0], opt_dirs=path_prefix, required=True)
|
||||
|
||||
for mod_param_name, spec in iteritems(module.argument_spec):
|
||||
if mod_param_name not in self.arg_formats:
|
||||
|
|
Loading…
Reference in a new issue