Hide DNS records from instances list

This commit is contained in:
2026-07-23 12:57:49 +04:00
parent 896966e671
commit 0ff0fae6ea
+3 -1
View File
@@ -55,7 +55,9 @@ def index():
raw_svc = get_services(client) raw_svc = get_services(client)
services = sorted(raw_svc, key=lambda s: (s.get("svcId", 0), s.get("svc", ""))) services = sorted(raw_svc, key=lambda s: (s.get("svcId", 0), s.get("svc", "")))
raw_inst = get_instances(client) raw_inst = get_instances(client)
instances = [i for i in raw_inst if i.get("explainedStatus") not in ("deleted", "not created")] instances = [i for i in raw_inst
if i.get("explainedStatus") not in ("deleted", "not created")
and i.get("serviceId") not in (109, 110, 111)] # DNS — не показываем
# org first, then rest # org first, then rest
instances.sort(key=lambda i: (0 if i.get("serviceId") == 19 else 1, i.get("displayName", ""))) instances.sort(key=lambda i: (0 if i.get("serviceId") == 19 else 1, i.get("displayName", "")))
config = load_config() config = load_config()