Update notification service

This commit is contained in:
MacRimi
2026-02-21 21:36:27 +01:00
parent 06c9ff481e
commit fccd4c12ca
2 changed files with 13 additions and 10 deletions

View File

@@ -1055,7 +1055,7 @@ class ProxmoxHookWatcher:
# ── PVE native notification types ──
# When PVE sends via our webhook body template, fields.type is one of:
# vzdump, fencing, replication, package-updates, system-mail
pve_type = payload.get('type', '').lower()
pve_type = payload.get('type', '').lower().strip()
if pve_type == 'vzdump':
# Backup notification -- determine success or failure from severity
@@ -1163,6 +1163,6 @@ class ProxmoxHookWatcher:
raw_l = str(raw).lower()
if raw_l in ('critical', 'emergency', 'alert', 'crit', 'err', 'error'):
return 'CRITICAL'
if raw_l in ('warning', 'warn'):
if raw_l in ('warning', 'warn', 'notice'):
return 'WARNING'
return 'INFO'