feat: print static acl

This commit is contained in:
2022-12-11 02:57:33 +01:00
parent e9eadc2278
commit 5f7ce0e314

View File

@@ -4,9 +4,11 @@ import vm
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 = [ vm.VM(obj) for obj in jsonList ] vmList = [ vm.VM(obj) for obj in jsonList ]
for vmo in vmList: for vmo in vmList:
[ print(c) for c in vmo.dumpHAProxyComponents()] [ print(c) for c in vmo.dumpHAProxyComponents()]