]> git.proxmox.com Git - pve-storage.git/commit
prune backups: make vmid filtering more robust
authorFabian Ebner <f.ebner@proxmox.com>
Wed, 7 Apr 2021 10:25:37 +0000 (12:25 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 9 Apr 2021 10:41:34 +0000 (12:41 +0200)
commit68ce0b31e8a1b4004b4a8caa1c9ce6160b4aa71b
tree22a70175c589764b0894df2acc1af3ba3dc4a311
parentedb92f707a2f966fbcccbf364fdcb3dd50d8c64c
prune backups: make vmid filtering more robust

by relying on archive_info's vmid first. archive_info is already used to
determine if it's a standard name, and in that case the vmid is certainly set.

Also add asserts to make sure we got what we expected.

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