This commit is contained in:
2022-12-09 20:34:26 +01:00
commit 4f923afc42
2 changed files with 60 additions and 0 deletions

11
main.py Normal file
View File

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