mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-11-22 12:50:42 +00:00
fix splitting modules argument string
This commit is contained in:
parent
3777f6c44c
commit
b55eee5ddf
@ -392,7 +392,7 @@ def normalize_task(task, filename, custom_modules=[]):
|
|||||||
normalized["action"] = dict(__ansible_module__=action)
|
normalized["action"] = dict(__ansible_module__=action)
|
||||||
|
|
||||||
if "_raw_params" in arguments:
|
if "_raw_params" in arguments:
|
||||||
normalized["action"]["__ansible_arguments__"] = arguments["_raw_params"].split(" ")
|
normalized["action"]["__ansible_arguments__"] = arguments["_raw_params"].strip().split()
|
||||||
del(arguments["_raw_params"])
|
del(arguments["_raw_params"])
|
||||||
else:
|
else:
|
||||||
normalized["action"]["__ansible_arguments__"] = list()
|
normalized["action"]["__ansible_arguments__"] = list()
|
||||||
|
Loading…
Reference in New Issue
Block a user