]> git.proxmox.com Git - proxmox.git/commitdiff
notify: pbs context: include nodename in default sendmail author
authorLukas Wagner <l.wagner@proxmox.com>
Fri, 19 Apr 2024 14:17:14 +0000 (16:17 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 23 Apr 2024 21:06:52 +0000 (23:06 +0200)
The old notification stack in proxmox-backup includes the nodename, so
we include it here as well.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
Reviewed-by: Fiona Ebner <f.ebner@proxmox.com>
proxmox-notify/src/context/pbs.rs

index 70e993f02fac632f7a5595614d3fcee0543e1be1..299f685921e3272a9b74bff91c1744166c19d1ba 100644 (file)
@@ -82,7 +82,7 @@ impl Context for PBSContext {
     }
 
     fn default_sendmail_author(&self) -> String {
-        "Proxmox Backup Server".into()
+        format!("Proxmox Backup Server - {}", proxmox_sys::nodename())
     }
 
     fn default_sendmail_from(&self) -> String {