Use convert_bare instead of string formatting for raw vars in debug action plugin

pull/9402/head
James Cammarata 10 years ago
parent 707474a43a
commit 4c47c2273a

@ -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…
Cancel
Save