feat: check for alternative http codes

This commit is contained in:
2024-10-10 21:23:20 +00:00
parent 677ddb118d
commit 820a7b454a
2 changed files with 8 additions and 2 deletions

View File

@@ -10,7 +10,8 @@ def createMasterHostConfig(vmList):
continue
checkDomains = filter(lambda x: not x.get("nocheck"), vmo.subdomains)
websites = [ (s["name"], s.get("url")) for s in checkDomains]
websites = [ (s["name"], s.get("url"), [ str(x) for x in s.get("check-expect") or [] ]) for s in checkDomains]
f.write(template.render(hostname=vmo.hostname, address=vmo.ip, websites=websites))
def createMasterServiceConfig(vmList):