Tighten control plane flow and status presentation
This commit is contained in:
@@ -63,11 +63,6 @@ def check_services():
|
||||
try:
|
||||
status, body = get_text(url)
|
||||
services[name] = {"up": 200 <= status < 400, "status": status}
|
||||
if name == "gitea":
|
||||
try:
|
||||
services[name]["version"] = json.loads(body).get("version")
|
||||
except Exception:
|
||||
pass
|
||||
except Exception:
|
||||
services[name] = {"up": False, "status": None}
|
||||
return services
|
||||
|
||||
Reference in New Issue
Block a user