Update notification service

This commit is contained in:
MacRimi
2026-03-25 23:45:34 +01:00
parent 66892f69ce
commit ba4e3c3adb
5 changed files with 566 additions and 540 deletions

View File

@@ -151,9 +151,6 @@ class ProxmoxStorageMonitor:
storage_type = resource.get('plugintype', 'unknown')
status = resource.get('status', 'unknown')
# Debug: log storage status during startup
print(f"[v0] Storage '{name}': status={status}, maxdisk={resource.get('maxdisk', 0)}, node={node}")
try:
total = int(resource.get('maxdisk', 0))
used = int(resource.get('disk', 0))
@@ -186,7 +183,6 @@ class ProxmoxStorageMonitor:
storage_info['status'] = 'error'
storage_info['status_detail'] = 'unavailable' if total == 0 else status
unavailable_storages.append(storage_info)
print(f"[v0] Storage '{name}' marked UNAVAILABLE: total={total}, status={status}")
else:
storage_info['status'] = 'active'
available_storages.append(storage_info)