This keeps us isolated from any further changes in the proxmox_notify::Notification struct.
Signed-off-by: Lukas Wagner <l.wag...@proxmox.com> --- common/src/notify.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/common/src/notify.rs b/common/src/notify.rs index 9f44225..203acca 100644 --- a/common/src/notify.rs +++ b/common/src/notify.rs @@ -94,13 +94,7 @@ mod export { properties: Option<JSONValue>, ) -> Result<(), HttpError> { let config = this.config.lock().unwrap(); - - let notification = Notification { - severity, - title, - body, - properties, - }; + let notification = Notification::new_templated(severity, title, body, properties); api::common::send(&config, channel, ¬ification) } -- 2.39.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel