From dc02255bdc59dd0f5748fc31487b501273039c09 Mon Sep 17 00:00:00 2001 From: Lukas Wagner Date: Tue, 21 May 2024 15:31:43 +0200 Subject: [PATCH] notify: adapt to Option> to Vec changes in proxmox_notify Signed-off-by: Lukas Wagner Tested-by: Max Carrara Reviewed-by: Max Carrara --- common/src/notify.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/common/src/notify.rs b/common/src/notify.rs index 00a6056..e1b006b 100644 --- a/common/src/notify.rs +++ b/common/src/notify.rs @@ -153,8 +153,8 @@ mod export { &mut config, SendmailConfig { name, - mailto, - mailto_user, + mailto: mailto.unwrap_or_default(), + mailto_user: mailto_user.unwrap_or_default(), from_address, author, comment, @@ -329,8 +329,8 @@ mod export { port, mode, username, - mailto, - mailto_user, + mailto: mailto.unwrap_or_default(), + mailto_user: mailto_user.unwrap_or_default(), from_address, author, comment, @@ -429,10 +429,10 @@ mod export { &mut config, MatcherConfig { name, - match_severity, - match_field, - match_calendar, - target, + match_severity: match_severity.unwrap_or_default(), + match_field: match_field.unwrap_or_default(), + match_calendar: match_calendar.unwrap_or_default(), + target: target.unwrap_or_default(), mode, invert_match, comment,