]> git.proxmox.com Git - pve-manager.git/commit
vzdump: fix notifications for backing up VMs with 2+ disks to PBS
authorLukas Wagner <l.wagner@proxmox.com>
Fri, 25 Aug 2023 09:45:12 +0000 (11:45 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 25 Aug 2023 13:32:01 +0000 (15:32 +0200)
commit461c5ee29081f92e87d3641d8f0336996a7a07ff
treeafad6ff3b20535d9cfcc73c1cb78ba76cc633353
parent347f88fecd938da30fa2cab4724159225cf6f7bb
vzdump: fix notifications for backing up VMs with 2+ disks to PBS

In some situations, such as backing up VMs with 2 or more disks to
PBS, we get passed the backup archive size as a string instead of
as an integer. This led to errors rendering the notification template
down the line.

This commit explicitly casts the data from the task table to an int.
It would be a good idea to actually hunt down the places that produced
the string instead of an integer, but as a quick fix and as a
safeguard against similar lurking errors this approach is fine, IMO.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
PVE/VZDump.pm