fix: allow healthy status in invariants check
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user