mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
Use convert_bare instead of string formatting for raw vars in debug action plugin
This commit is contained in:
parent
707474a43a
commit
4c47c2273a
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ class ActionModule(object):
|
||||||
else:
|
else:
|
||||||
result = dict(msg=args['msg'])
|
result = dict(msg=args['msg'])
|
||||||
elif 'var' in args and not utils.LOOKUP_REGEX.search(args['var']):
|
elif 'var' in args and not utils.LOOKUP_REGEX.search(args['var']):
|
||||||
results = template.template(self.basedir, "{{ %s }}" % args['var'], inject)
|
results = template.template(self.basedir, args['var'], inject, convert_bare=True)
|
||||||
result[args['var']] = results
|
result[args['var']] = results
|
||||||
|
|
||||||
# force flag to make debug output module always verbose
|
# force flag to make debug output module always verbose
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue