mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-06-11 18:45:34 +00:00
[PR #12182/4d66b3da backport][stable-11] opkg - path_prefix needs to be a list (#12188)
opkg - path_prefix needs to be a list (#12182)
* opkg - path_prefix needs to be a list
path_prefix is passed to get_bin_path() which expects opt_dirs to be a list
of paths. Passing in a string instead of a list of paths results in incorrect
values being adding to the path when searching for the command to run.
* Add changelog
(cherry picked from commit 4d66b3dae8)
Co-authored-by: Sam Doran <sdoran@redhat.com>
This commit is contained in:
parent
ecef2e0648
commit
d5ce18c5c4
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/12182-opkg-path-prefix.yml
Normal file
2
changelogs/fragments/12182-opkg-path-prefix.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- opkg - correctly set executable search path (https://github.com/ansible-collections/community.general/pull/12182).
|
||||
|
|
@ -168,7 +168,7 @@ class Opkg(StateModuleHelper):
|
|||
update_cache=cmd_runner_fmt.as_bool("update"),
|
||||
version=cmd_runner_fmt.as_fixed("--version"),
|
||||
),
|
||||
path_prefix=dir,
|
||||
path_prefix=[dir],
|
||||
)
|
||||
|
||||
with self.runner("version") as ctx:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue