tape/send_load_media_email: move to server/email_notifications

and reuse 'send_job_status_mail' there so that we get consistent
formatted mails from pbs (e.g. html part and author)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak
2021-03-11 09:24:52 +01:00
committed by Thomas Lamprecht
parent 2c10410b0d
commit 2892624783
4 changed files with 28 additions and 41 deletions

View File

@ -51,7 +51,10 @@ use crate::{
VirtualTapeDrive,
LinuxTapeDrive,
},
server::WorkerTask,
server::{
send_load_media_email,
WorkerTask,
},
tape::{
TapeWrite,
TapeRead,
@ -66,7 +69,6 @@ use crate::{
changer::{
MediaChange,
MtxMediaChanger,
send_load_media_email,
},
},
};