mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Make debug print things nicer if {{ foo }} didn't interpolate
This commit is contained in:
@@ -32,7 +32,12 @@ class ActionModule(object):
|
||||
args = {}
|
||||
if complex_args:
|
||||
args.update(complex_args)
|
||||
args.update(utils.parse_kv(module_args))
|
||||
|
||||
# attempt to prevent confusing messages when the variable didn't interpolate
|
||||
module_args = module_args.replace("{{ ","{{").replace(" }}","}}")
|
||||
|
||||
kv = utils.parse_kv(module_args)
|
||||
args.update(kv)
|
||||
if not 'msg' in args:
|
||||
args['msg'] = 'Hello world!'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user