From b2000d1f75483749b8404d016322a13ee6f51cb0 Mon Sep 17 00:00:00 2001 From: Lukas Wagner Date: Tue, 23 Apr 2024 13:51:49 +0200 Subject: [PATCH] notify: pbs-context: exclude successful prunes in default matcher PBS sends notifications for all events but successful prune jobs. There we only care about errors. This commit adapts the 'default-matcher' to reflect that behavior as well. Signed-off-by: Lukas Wagner Tested-by: Maximiliano Sandoval --- proxmox-notify/src/context/pbs.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/proxmox-notify/src/context/pbs.rs b/proxmox-notify/src/context/pbs.rs index 299f6859..2de305f5 100644 --- a/proxmox-notify/src/context/pbs.rs +++ b/proxmox-notify/src/context/pbs.rs @@ -66,8 +66,11 @@ sendmail: mail-to-root matcher: default-matcher mode all + invert-match true + match-field exact:type=prune + match-severity info target mail-to-root - comment Route all notifications to mail-to-root + comment Route everything but successful prune job notifications to mail-to-root "; #[derive(Debug)]