From 18c1163ad33d22af914e3b6288892b3c85809b27 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Fri, 29 Sep 2017 11:15:47 +0200 Subject: [PATCH] Make env variables accessible in template files Change-Id: Ib2bc276d1de030c737231a8854e593617dd86471 --- kolla/image/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kolla/image/build.py b/kolla/image/build.py index 94b72eff1b..11f347a80b 100755 --- a/kolla/image/build.py +++ b/kolla/image/build.py @@ -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)