Make env variables accessible in template files

Change-Id: Ib2bc276d1de030c737231a8854e593617dd86471
This commit is contained in:
Christian Berendt 2017-09-29 11:15:47 +02:00
parent 61495b1a83
commit 18c1163ad3
1 changed files with 1 additions and 1 deletions

View File

@ -871,7 +871,7 @@ class KollaWorker(object):
env.filters.update(self._get_filters())
env.globals.update(self._get_methods())
template = env.get_template(template_name)
content = template.render(values)
content = template.render(values, env=os.environ)
content_path = os.path.join(path, 'Dockerfile')
with open(content_path, 'w') as f:
LOG.debug("Rendered %s into:", tpl_path)