Filter out deleted/not-created instances

This commit is contained in:
2026-07-23 12:56:55 +04:00
parent 67b4606bc2
commit 896966e671
+2 -1
View File
@@ -54,7 +54,8 @@ def index():
org = get_organization(client)
raw_svc = get_services(client)
services = sorted(raw_svc, key=lambda s: (s.get("svcId", 0), s.get("svc", "")))
instances = get_instances(client)
raw_inst = get_instances(client)
instances = [i for i in raw_inst if i.get("explainedStatus") not in ("deleted", "not created")]
# org first, then rest
instances.sort(key=lambda i: (0 if i.get("serviceId") == 19 else 1, i.get("displayName", "")))
config = load_config()