wip: misc fixes

This commit is contained in:
2022-12-09 21:48:43 +01:00
parent 5d36c3da73
commit 55b5768acb
2 changed files with 10 additions and 9 deletions

View File

@@ -1,11 +1,12 @@
import json
import vm
if __name__ == "__main__":
FILE = "vms.json"
with open(FILE) as f:
jsonList = json.load(f)
vmList = [ VM(obj) for obj in jsonList ]
vmList = [ vm.VM(obj) for obj in jsonList ]
for vm in vmList:
print(vmList.dumpHAProxyComponents())
for vmo in vmList:
[ print(c) for c in vmo.dumpHAProxyComponents()]