1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-07-02 00:28:52 +00:00

[PR #12339/2354b40d backport][stable-12] composer: restore compatibility with older composer versions (#12343)

composer: restore compatibility with older composer versions (#12339)

* Restore compatibility.

* Adjust tests.

(cherry picked from commit 2354b40d10)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot] 2026-06-25 07:27:48 +02:00 committed by GitHub
parent 71bbc7a060
commit 4138faac65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 8 deletions

View file

@ -189,7 +189,7 @@ def composer_command(module, command, arguments=None, options=None):
working_dir_option = []
else:
global_arg = []
working_dir_option = ["--working-dir", module.params["working_dir"]]
working_dir_option = [f"--working-dir={module.params['working_dir']}"]
if module.params["executable"] is None:
php_path = module.get_bin_path("php", True, ["/usr/local/bin"])