From 3dd29699070bca79d3cf547c1ab52db5722fa62f Mon Sep 17 00:00:00 2001 From: Johnathan Kupferer Date: Tue, 9 Jul 2024 12:41:54 -0400 Subject: [PATCH] Fix check condition bug --- operator/poolboy_templating.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/operator/poolboy_templating.py b/operator/poolboy_templating.py index 6322bbe..8c68a41 100644 --- a/operator/poolboy_templating.py +++ b/operator/poolboy_templating.py @@ -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 )