From f8b17ef8d31592c57dd2f94f6652373d7d5ef879 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20N=C3=A9ri?= Date: Sun, 13 May 2012 20:42:11 +0200 Subject: [PATCH] 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. --- lib/ansible/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/utils.py b/lib/ansible/utils.py index aacc9d5d6d..c6a7346fce 100644 --- a/lib/ansible/utils.py +++ b/lib/ansible/utils.py @@ -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)