1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-06-30 07:50:43 +00:00

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

* Restore compatibility.

* Adjust tests.
This commit is contained in:
Felix Fontein 2026-06-25 05:33:40 +02:00 committed by GitHub
parent 77e1e047b8
commit 2354b40d10
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"])