1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

added constraint for space in composer command

This commit is contained in:
Ramunas Dronga 2015-10-29 23:21:46 +02:00 committed by Matt Clay
parent 662fa86f07
commit ae18a1d877

View file

@ -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)