diff --git a/main.py b/main.py index 8f9ec74..309c0a0 100644 --- a/main.py +++ b/main.py @@ -6,18 +6,21 @@ import os # hostList = os.environ["hosts"] # hostList = hostList.split(",") -# dev + +# host hostList = ['10.0.5.2', '10.0.5.181'] test = [] ## pull all the UPSes froom each host for host in hostList: + input(host) client = PyNUTClient(host, '3493') for UPS in client.list_ups(): test.append(str(UPS)) print(test) + # client = PyNUTClient('10.0.5.2', '3493') # print(client.list_ups())