mirror of
https://github.com/FAUSheppy/athq-vm-management
synced 2025-12-06 05:41:35 +01:00
fix: update debug outputs
This commit is contained in:
5
main.py
5
main.py
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user