mirror of
https://github.com/FAUSheppy/athq-vm-management
synced 2025-12-06 05:41:35 +01:00
feat: print static acl
This commit is contained in:
2
main.py
2
main.py
@@ -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()]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user