fix: update debug outputs

This commit is contained in:
2022-12-21 14:03:15 +01:00
parent b5410a9903
commit 984ee9f214

View File

@@ -11,7 +11,6 @@ location /.well-known/acme-challenge/ {
if __name__ == "__main__": if __name__ == "__main__":
FILE = "vms.json" FILE = "vms.json"
print(vm.HA_PROXY_STATIC_ACLS)
with open(FILE) as f: with open(FILE) as f:
jsonList = json.load(f) jsonList = json.load(f)
vmList = [] vmList = []
@@ -20,16 +19,14 @@ if __name__ == "__main__":
vmo = vm.VM(obj) vmo = vm.VM(obj)
vmList.append(vmo) vmList.append(vmo)
except ValueError as e: except ValueError as e:
print(e) print(e, file=sys.stderr)
with open("./build/stream_include.conf", "w") as f: with open("./build/stream_include.conf", "w") as f:
for vmo in vmList: for vmo in vmList:
[ print(c) for c in vmo.dumpStreamComponents()]
[ f.write(c) for c in vmo.dumpStreamComponents()] [ f.write(c) for c in vmo.dumpStreamComponents()]
with open("./build/http_include.conf", "w") as f: with open("./build/http_include.conf", "w") as f:
for vmo in vmList: for vmo in vmList:
[ print(c) for c in vmo.dumpServerComponents()]
[ f.write(c) for c in vmo.dumpServerComponents()] [ f.write(c) for c in vmo.dumpServerComponents()]
with open("./build/acme-challenge.conf", "w") as f: with open("./build/acme-challenge.conf", "w") as f: