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:
parent
71bbc7a060
commit
4138faac65
3 changed files with 10 additions and 8 deletions
|
|
@ -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"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue