]> git.proxmox.com Git - qemu-server.git/commit
restore vma: fix applying storage-specific bandwidth limit
authorFabian Ebner <f.ebner@proxmox.com>
Mon, 15 Mar 2021 11:57:27 +0000 (12:57 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 15 Mar 2021 12:22:58 +0000 (13:22 +0100)
commitc89642784d80b3b75cecd3046a4dd3e2f19af37c
treed74e336e637e6e248d8a1ab72e6b4715c810c65f
parent8e6bcc507ac225507af02d0f87af791dfba8168b
restore vma: fix applying storage-specific bandwidth limit

At this stage, there are no keys in %storage_limits to iterate over. The
refactoring in commit 9f3d73bc353c79f84498122b779764184f504005 broke the logic
by accident.

Also explicitly set zero if there is no limit to avoid repeating the
get_bandwith_limit call for the same storage. When accessing the value later,
zero is already correctly handled as 'no limit'.

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