From ae18a1d8779cb70fdf656a16b6b460e8cc012ff6 Mon Sep 17 00:00:00 2001 From: Ramunas Dronga Date: Thu, 29 Oct 2015 23:21:46 +0200 Subject: [PATCH] added constraint for space in composer command --- lib/ansible/modules/extras/packaging/language/composer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ansible/modules/extras/packaging/language/composer.py b/lib/ansible/modules/extras/packaging/language/composer.py index 60b6bec5c7..af46a1849c 100644 --- a/lib/ansible/modules/extras/packaging/language/composer.py +++ b/lib/ansible/modules/extras/packaging/language/composer.py @@ -170,6 +170,9 @@ def main(): # Get composer command with fallback to default command = module.params['command'] + if re.search(r"\s", command): + module.fail_json(msg="Use the 'arguments' param for passing arguments with the 'command'") + arguments = module.params['arguments'] available_options = get_available_options(module=module, command=command)