fix splitting modules argument string

This commit is contained in:
Robert Kaussow 2019-06-21 11:43:55 +02:00
parent 3777f6c44c
commit b55eee5ddf

View File

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