diff --git a/scripts/agent-health-check.py b/scripts/agent-health-check.py index cf8575d..ccff866 100755 --- a/scripts/agent-health-check.py +++ b/scripts/agent-health-check.py @@ -531,11 +531,11 @@ def check_config_integrity(): print(f" ⬜ {name}: cannot SSH — skip config check") continue + home = get_user_home(user) + # Check YAML parses yaml_ok = ssh(host, - f"python3 -c " - f"'import yaml; yaml.safe_load(open(\'{home}/.hermes/config.yaml\')); print(\'OK\')" ' - "2>&1 || echo 'FAIL'", + f"python3 -c \"import yaml; yaml.safe_load(open('{home}/.hermes/config.yaml')); print('OK')\" 2>&1 || echo 'FAIL'", user=user) if not yaml_ok: print(f" ❌ {name}: SSH UNREACHABLE (config check skipped)")