diff options
| author | Christian Berendt <berendt@betacloud-solutions.de> | 2017-09-29 11:15:47 +0200 |
|---|---|---|
| committer | Christian Berendt <berendt@betacloud-solutions.de> | 2017-11-08 11:34:26 +0000 |
| commit | 18c1163ad33d22af914e3b6288892b3c85809b27 (patch) | |
| tree | 29ae4e1c8088bb12536165d8a1bc291de6e9e9de /kolla | |
| parent | 61495b1a8303e52f58cc4d8970c2d484b5f31520 (diff) | |
| download | kolla-18c1163ad33d22af914e3b6288892b3c85809b27.tar.gz kolla-18c1163ad33d22af914e3b6288892b3c85809b27.zip | |
Make env variables accessible in template files
Change-Id: Ib2bc276d1de030c737231a8854e593617dd86471
Diffstat (limited to 'kolla')
| -rwxr-xr-x | kolla/image/build.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kolla/image/build.py b/kolla/image/build.py index 94b72eff1..11f347a80 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) |
