From 86bea2d6abf4604e8ea2ff316a770b777b972fcd Mon Sep 17 00:00:00 2001 From: Ramunas Dronga Date: Fri, 30 Oct 2015 12:24:42 +0200 Subject: [PATCH] fixed composer usage example --- lib/ansible/modules/extras/packaging/language/composer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/extras/packaging/language/composer.py b/lib/ansible/modules/extras/packaging/language/composer.py index af46a1849cc..95b0eb3a940 100644 --- a/lib/ansible/modules/extras/packaging/language/composer.py +++ b/lib/ansible/modules/extras/packaging/language/composer.py @@ -110,7 +110,8 @@ EXAMPLES = ''' - composer: command=install working_dir=/path/to/project - composer: - command: "require my/package" + command: "require" + arguments: "my/package" working_dir: "/path/to/project" # Clone project and install with all dependencies @@ -172,7 +173,7 @@ def main(): 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)