1
0
Fork 0
mirror of https://github.com/ThomasGsp/HyperProxmox.git synced 2025-03-09 15:40:18 +00:00

Change status if not found (pve-version)

This commit is contained in:
Tlams 2018-03-20 17:16:34 +00:00
parent 235bc489b5
commit d7a687d30c

View file

@ -192,7 +192,7 @@ class Analyse:
try:
node_status["status"] = value_nodes_list["status"]
except BaseException:
node_status["status"] = "Online"
node_status["status"] = "Unknown"
percent_cpu_alloc = (totalcpu / value_nodes_list["maxcpu"]) * 100
percent_ram_alloc = (totalram / value_nodes_list["mem"]) * 100