Bläddra i källkod

Exclude config-disabled services from /status credentials report

ZiB 4 månader sedan
förälder
incheckning
fcb9139aa0
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      room_cal/_health.py

+ 2 - 1
room_cal/_health.py

@@ -81,8 +81,9 @@ async def credentials_checks(api: ServiceAPI | None = None) -> dict[str, HealthR
   if api is None:
     api = ServiceAPI()
   out: dict[str, HealthResult] = {
-    key: HealthResult(ok=False, reason=f'disabled at startup: {reason}')
+    key: HealthResult(ok=False, reason=f'load error: {reason}')
     for key, reason in api._disabled.items()
+    if reason != 'disabled in config'
   }
   keys = [s.key for s in services() if s.key in api._clients]
   if keys: