]> git.proxmox.com Git - pve-manager.git/commit
fix #4351: vzdump: send mail if job-end hook fails with mailnotification=failure
authorFiona Ebner <f.ebner@proxmox.com>
Wed, 16 Nov 2022 08:30:13 +0000 (09:30 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 16 Nov 2022 10:25:58 +0000 (11:25 +0100)
commit268c642826e5c4784de3890b113dd7036ff42d24
tree35edf05fd7ca8f13690b4ebe1e3dcfe84b82b1e7
parent2389b2fa057bc99f33306c7acd063fa8e22b522a
fix #4351: vzdump: send mail if job-end hook fails with mailnotification=failure

Since all tasks succeeded, previously no mail was sent in that case.

Note that the error passed to $self->sendmail() is added to the
subject of the mail if it is a single line or the beginning of the
mail otherwise. Thus changing the mail slightly compared to previously
for the case where the job-start hook fails and the case where the
job-end hook fails with mailnotification=always. But can be considered
an improvement, because the user sees the error right away.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
PVE/VZDump.pm