Skip to content

Commit

Permalink
Fix check for BOEFJE_ env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
dekkers committed Oct 29, 2024
1 parent e084073 commit a199296
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions boefjes/boefjes/job_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit a199296

Please sign in to comment.