From 754a0cef255f1b46fef9b5a4b8d71f91627e79f5 Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang Date: Wed, 7 Sep 2016 20:17:18 +0800 Subject: [PATCH] Add extra methods in template when using template override Add the Kolla template methods when using --template-override parameter TrivialFix Change-Id: I67ab579817fc5462143e5742d78db4a202debf2e Signed-off-by: Jeffrey Zhang --- kolla/image/build.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kolla/image/build.py b/kolla/image/build.py index 03534b7971..d729323a65 100644 --- a/kolla/image/build.py +++ b/kolla/image/build.py @@ -672,6 +672,7 @@ class KollaWorker(object): env = jinja2.Environment( # nosec: not used to render HTML loader=jinja2.FileSystemLoader(template_path)) env.filters.update(self._get_filters()) + env.globals.update(self._get_methods()) template = env.get_template(template_name) if self.include_header: with open(self.include_header, 'r') as f: