Skip to content

Commit 4fb3a19

Browse files
andrewm4894Copilot
andauthored
Update anomstack/config.py
Co-authored-by: Copilot <[email protected]>
1 parent b73b78f commit 4fb3a19

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

anomstack/config.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,8 @@ def process_yaml_file(yaml_file: str):
5050
param_key = env_var.replace("ANOMSTACK_", "").lower()
5151
# Check if the parameter exists in either YAML file
5252
yaml_value = metric_specs.get(param_key) or defaults.get(param_key)
53-
# Only override if the parameter is not in either YAML file
54-
if yaml_value is None:
55-
merged_specs[param_key] = os.getenv(env_var)
53+
# Always override with the environment variable value
54+
merged_specs[param_key] = os.getenv(env_var)
5655

5756
# Apply metric batch-specific environment variable overrides
5857
# Pattern: ANOMSTACK__<METRIC_BATCH>__<PARAM>

0 commit comments

Comments
 (0)