Skip to content

Commit

Permalink
Fix check condition bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jkupferer committed Jul 9, 2024
1 parent fe214b2 commit 3dd2969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion operator/poolboy_templating.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def seconds_to_interval(seconds:int) -> str:

def check_condition(condition, template_style='jinja2', variables={}):
return jinja2process(
template="{{ " + condition + " | bool}}",
template="{{ (" + condition + ") | bool}}",
template_style=template_style,
variables=variables
)
Expand Down

0 comments on commit 3dd2969

Please sign in to comment.