mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-03 23:14:02 -07:00
[PR #10525/5bdd82fb backport][stable-11] composer: command args as list rather than string (#10590)
composer: command args as list rather than string (#10525)
* composer: command args as list rather than string
* add changelog frag
(cherry picked from commit 5bdd82fbf5
)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
e0a86f172f
commit
d65b6edfaf
2 changed files with 3 additions and 1 deletions
|
@ -188,7 +188,7 @@ def composer_command(module, command, arguments="", options=None):
|
|||
else:
|
||||
composer_path = module.params['composer_executable']
|
||||
|
||||
cmd = "%s %s %s %s %s %s" % (php_path, composer_path, "global" if global_command else "", command, " ".join(options), arguments)
|
||||
cmd = [php_path, composer_path, "global" if global_command else "", command] + options + [arguments]
|
||||
return module.run_command(cmd)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue