Browse Source

fix: make Jinja3 work

master
Stefan Reimer 4 months ago
parent
commit
160250369b
  1. 2
      cloudbender/jinja.py
  2. 2
      cloudbender/stack.py

2
cloudbender/jinja.py

@ -156,8 +156,10 @@ def inline_yaml(block):
def JinjaEnv(template_locations=[]):
LoggingUndefined = jinja2.make_logging_undefined(logger=logger, base=Undefined)
jenv = jinja2.Environment(trim_blocks=True,
lstrip_blocks=True,
undefined=LoggingUndefined,
extensions=['jinja2.ext.loopcontrols', 'jinja2.ext.do'])
if template_locations:

2
cloudbender/stack.py

@ -166,6 +166,8 @@ class Stack(object):
Description: Project / Namespace this stack is part of
"""
self.cfn_template = re.sub(_res, '', self.cfn_template)
else:
self.dependencies.add("CloudBender")
include = []
search_refs(self.cfn_data, include, self.mode)

Loading…
Cancel
Save