From 8846f467e677e6e4b675bfff15341a05b32a8a18 Mon Sep 17 00:00:00 2001 From: Lyncoln Date: Mon, 26 Oct 2026 09:49:49 -0400 Subject: [PATCH] Introduced osenv to handle filter values dependent on the same (probably unneeded with the new allow action method) --- core/runtime/applyconditions.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/core/runtime/applyconditions.py b/core/runtime/applyconditions.py index 6a91567..da1bbe5 100644 --- a/core/runtime/applyconditions.py +++ b/core/runtime/applyconditions.py @@ -1,3 +1,7 @@ +import os + +## dictionary for action resolution is "RESOLVED" + def applyConditions(definition, dictionary, outputs): if hasattr(definition, "filters"): @@ -5,8 +9,11 @@ def applyConditions(definition, dictionary, outputs): try: filtervalue = filter["filtervalue"] if isinstance(filter["filtervalue"], dict): - - filtervalue = outputs.get(filtervalue["outputs"]) + if "outputs" in filtervalue: + filtervalue = outputs.get(filtervalue["outputs"]) + elif "osenv" in filtervalue: + filtervalue = os.environ.get(filtervalue["osenv"]) + if filtervalue is None: continue