Commit 6e814566 by James Cammarata

Unquote params passed to an include statement

Fixes #8315
parent 106f4ccc
......@@ -573,6 +573,7 @@ class Play(object):
mv = task_vars.copy()
for t in tokens[1:]:
(k,v) = t.split("=", 1)
v = utils.splitter.unquote(v)
mv[k] = template(self.basedir, v, mv)
dirname = self.basedir
if original_file:
......
......@@ -121,3 +121,7 @@
include: test_include.yml param={{ test_input }}
register: result
- name: test includes with quoted params
include: test_include.yml param="this is a param"
register: result
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment