1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

For utils.template_from_file, change 'no_engine' default to True

This now follows the other template functions, and implicitly also
fixes that playbook handler includes were still processed by Jinja2.
This commit is contained in:
Daniel Néri 2012-05-13 20:42:11 +02:00
parent 4b0480dd9d
commit f8b17ef8d3

View file

@ -273,7 +273,7 @@ def template(text, vars, setup_cache, no_engine=True):
def double_template(text, vars, setup_cache):
return template(template(text, vars, setup_cache), vars, setup_cache)
def template_from_file(path, vars, setup_cache, no_engine=False):
def template_from_file(path, vars, setup_cache, no_engine=True):
''' run a file through the templating engine '''
data = codecs.open(path, encoding="utf8").read()
return template(data, vars, setup_cache, no_engine=no_engine)