diff options
| author | Zuul <zuul@review.openstack.org> | 2017-11-13 10:38:46 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2017-11-13 10:38:46 +0000 |
| commit | 35fd42d9ce52f2b3adea1598a0b86ad3094e25d8 (patch) | |
| tree | 4d27209eb3dc71153a126f6cb35a8626efd1faba /kolla | |
| parent | 920e9b375070317c0d28f32b7f1bdc5edcfc3a0e (diff) | |
| parent | 18c1163ad33d22af914e3b6288892b3c85809b27 (diff) | |
| download | kolla-35fd42d9ce52f2b3adea1598a0b86ad3094e25d8.tar.gz kolla-35fd42d9ce52f2b3adea1598a0b86ad3094e25d8.zip | |
Merge "Make env variables accessible in template files"
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 6af8f24aa..0de6b8bef 100755 --- a/kolla/image/build.py +++ b/kolla/image/build.py @@ -875,7 +875,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) |
