summaryrefslogtreecommitdiff
path: root/lib/ansible/playbook/helpers.py
diff options
context:
space:
mode:
authorBrian Coca <bcoca@users.noreply.github.com>2017-04-21 16:07:38 -0400
committerGitHub <noreply@github.com>2017-04-21 16:07:38 -0400
commit4594bee65ae2123061e2f262503310a9a57a5a59 (patch)
treee5801846635f9295d02db726688e02c84b0e1391 /lib/ansible/playbook/helpers.py
parent3358abcf49d41deeec3139dc5527e5aad6d3eb49 (diff)
downloadansible-4594bee65ae2123061e2f262503310a9a57a5a59.tar.gz
keep unsafe .. unsafe (#23742)
* keep unsafe .. unsafe fixes #23734, which was broken in previous fix that allowed non string types to be templated use new 'is_template' function vs bastardizing others refactored clean_data to allow for arbitrary data structures to clean fixed/removed some tests * deal with complex data for is_template * typos
Diffstat (limited to 'lib/ansible/playbook/helpers.py')
-rw-r--r--lib/ansible/playbook/helpers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/playbook/helpers.py b/lib/ansible/playbook/helpers.py
index 7ded4c6540..c3e587ca37 100644
--- a/lib/ansible/playbook/helpers.py
+++ b/lib/ansible/playbook/helpers.py
@@ -289,7 +289,7 @@ def load_list_of_tasks(ds, play, block=None, role=None, task_include=None, use_h
needs_templating = False
for param in ir.args:
if templar._contains_vars(ir.args[param]):
- if not templar.templatable(ir.args[param]):
+ if not templar.is_template(ir.args[param]):
needs_templating = True
break
is_static = C.DEFAULT_TASK_INCLUDES_STATIC or \