fix(integration): cron preflight reads primary config.yaml via read_user_config_raw()
Compaction put the 'config.yaml' literal within the config-read guard's proximity window of a raw yaml.safe_load. Use the canonical raw reader with an explicit path (same semantics: raw primary file, no defaults/overlay).
This commit is contained in:
@@ -137,9 +137,8 @@ def _primary_profile_routes_for_current_home() -> list:
|
||||
if not config_path.exists():
|
||||
return []
|
||||
|
||||
import yaml
|
||||
with open(config_path, encoding="utf-8") as f:
|
||||
raw = yaml.safe_load(f) or {}
|
||||
from hermes_cli.config import read_user_config_raw
|
||||
raw = read_user_config_raw(config_path) # raw primary file, not the merged current-profile config
|
||||
routes_raw = raw.get("profile_routes")
|
||||
if routes_raw is None and isinstance(raw.get("gateway"), dict):
|
||||
routes_raw = raw["gateway"].get("profile_routes")
|
||||
|
||||
Reference in New Issue
Block a user