Skip to content
Snippets Groups Projects
Commit 8d508040 authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "Add extra methods in template when using template override"

parents 6a95a5e2 754a0cef
No related branches found
No related tags found
No related merge requests found
......@@ -673,6 +673,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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment