fix(workflow): render jinja variables with actual values in non-strict mode
This commit is contained in:
@@ -38,7 +38,11 @@ class JinjaRenderNode(BaseNode):
|
|||||||
|
|
||||||
context = {}
|
context = {}
|
||||||
for variable in self.typed_config.mapping:
|
for variable in self.typed_config.mapping:
|
||||||
context[variable.name] = self._render_template(variable.value, state)
|
try:
|
||||||
|
context[variable.name] = self.get_variable(variable.value, state)
|
||||||
|
except Exception:
|
||||||
|
logger.info(f"variable not found, var: {variable.value}")
|
||||||
|
continue
|
||||||
|
|
||||||
try:
|
try:
|
||||||
res = render.env.from_string(self.typed_config.template).render(**context)
|
res = render.env.from_string(self.typed_config.template).render(**context)
|
||||||
|
|||||||
Reference in New Issue
Block a user