mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00: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:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user