fix: allow healthy status in invariants check

This commit is contained in:
Apple
2025-11-30 14:53:53 -08:00
parent a8617df1d0
commit 4ae9ee4d70

View File

@@ -508,11 +508,11 @@ def check_healthz(client: APIClient, results: CheckResults):
))
else:
status = data.get("status", "unknown") if data else "unknown"
if status == "ok":
if status in ["ok", "healthy"]:
results.passed.append(InvariantResult(
name=inv_name,
passed=True,
message="City service healthy"
message=f"City service healthy: {status}"
))
else:
results.failed.append(InvariantResult(