Files
athq-vm-management/main.py
2022-12-11 02:57:33 +01:00

15 lines
316 B
Python

import json
import vm
if __name__ == "__main__":
FILE = "vms.json"
print(vm.HA_PROXY_STATIC_ACLS)
with open(FILE) as f:
jsonList = json.load(f)
vmList = [ vm.VM(obj) for obj in jsonList ]
for vmo in vmList:
[ print(c) for c in vmo.dumpHAProxyComponents()]