summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToshio Kuratomi <a.badger@gmail.com>2017-11-09 10:23:16 -0800
committerToshio Kuratomi <a.badger@gmail.com>2017-11-09 10:24:43 -0800
commit6eb485c136ce5f74079a030831c3e964df4ad805 (patch)
tree1a732819cb482fb42c185395276ded68eb4d08b0
parent49f3dda7f6fb687dc4df7edc91498b8460a530a5 (diff)
downloadansible-6eb485c136ce5f74079a030831c3e964df4ad805.tar.gz
Revert "Do not escape backslashes when using the template lookup plugin"
This reverts commit 2b40463a48cb0e4db576cb3775110df6c07a1c3a. Decided that this change was too big for a bugfix release. Make it 2.4.x only.
-rw-r--r--lib/ansible/plugins/lookup/template.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/ansible/plugins/lookup/template.py b/lib/ansible/plugins/lookup/template.py
index 27a4bd2486..3b51b37700 100644
--- a/lib/ansible/plugins/lookup/template.py
+++ b/lib/ansible/plugins/lookup/template.py
@@ -68,8 +68,7 @@ class LookupModule(LookupBase):
self._templar.set_available_variables(temp_vars)
# do the templating
- res = self._templar.template(template_data, preserve_trailing_newlines=True,
- convert_data=convert_data_p, escape_backslashes=False)
+ res = self._templar.template(template_data, preserve_trailing_newlines=True,convert_data=convert_data_p)
ret.append(res)
else:
raise AnsibleError("the template file %s could not be found for the lookup" % term)