From a199296ecd4e88bb6b5abd49bb7444e3bb1f4724 Mon Sep 17 00:00:00 2001 From: Jeroen Dekkers Date: Tue, 29 Oct 2024 16:41:07 +0100 Subject: [PATCH] Fix check for BOEFJE_ env vars --- boefjes/boefjes/job_handler.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/boefjes/boefjes/job_handler.py b/boefjes/boefjes/job_handler.py index cc2893983ee..2063e81ee3b 100644 --- a/boefjes/boefjes/job_handler.py +++ b/boefjes/boefjes/job_handler.py @@ -49,9 +49,7 @@ def get_environment_settings(boefje_meta: BoefjeMeta, schema: dict | None = None allowed_keys = schema.get("properties", []) if schema else [] new_env = { - key.split("BOEFJE_", 1)[1]: value - for key, value in os.environ.items() - if key.startswith("BOEFJE_") and key in allowed_keys + key[7:]: value for key, value in os.environ.items() if key.startswith("BOEFJE_") and key[7:] not in allowed_keys } settings_from_katalogus = response.json()