Merge pull request #488 from dhozac/jinja2-env

Create a Jinja2 environment allowing includes
This commit is contained in:
Michael DeHaan 2012-06-19 13:09:02 -07:00
commit bd653c8f3c
5 changed files with 47 additions and 51 deletions

View file

@ -588,8 +588,7 @@ class Runner(object):
# template the source data locally
try:
resultant = utils.template_from_file(utils.path_dwim(self.basedir, source),
inject, self.setup_cache, no_engine=False)
resultant = utils.template_from_file(self.basedir, source, inject, self.setup_cache)
except Exception, e:
result = dict(failed=True, msg=str(e))
return ReturnData(host=conn.host, comm_ok=False, result=result)