UdoChudo 4f7300e2ce
All checks were successful
Build and Push Docker Images / build (push) Successful in 36s
chore: remove unused file and comments
Signed-off-by: UdoChudo <stream@udochudo.ru>
2025-06-20 15:05:30 +05:00

15 lines
259 B
Python

# parser.py
def parse_region_id(hostgroups: str | None) -> str:
if not hostgroups:
return "0"
if hostgroups == "p00rtmis":
return "0"
parts = hostgroups.split("_")
if len(parts) >= 2:
return parts[1]
return "0"