1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-06-10 18:15:39 +00:00

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
This commit is contained in:
Sam Doran 2026-06-05 00:37:23 -04:00 committed by GitHub
parent 48db863096
commit 4d66b3dae8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- opkg - correctly set executable search path (https://github.com/ansible-collections/community.general/pull/12182).

View file

@ -166,7 +166,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: