fixed composer usage example

reviewable/pr18780/r1
Ramunas Dronga 9 years ago
parent 83c0bfbe3f
commit a0965ff934

@ -110,7 +110,8 @@ EXAMPLES = '''
- composer: command=install working_dir=/path/to/project - composer: command=install working_dir=/path/to/project
- composer: - composer:
command: "require my/package" command: "require"
arguments: "my/package"
working_dir: "/path/to/project" working_dir: "/path/to/project"
# Clone project and install with all dependencies # Clone project and install with all dependencies
@ -172,7 +173,7 @@ def main():
command = module.params['command'] command = module.params['command']
if re.search(r"\s", command): if re.search(r"\s", command):
module.fail_json(msg="Use the 'arguments' param for passing arguments with the 'command'") module.fail_json(msg="Use the 'arguments' param for passing arguments with the 'command'")
arguments = module.params['arguments'] arguments = module.params['arguments']
available_options = get_available_options(module=module, command=command) available_options = get_available_options(module=module, command=command)

Loading…
Cancel
Save