From: Alwin Antreich Date: Fri, 7 Sep 2018 08:52:23 +0000 (+0200) Subject: Addition to fix #1895, skip image if no owner X-Git-Url: https://git.proxmox.com/?p=pve-storage.git;a=commitdiff_plain;h=aa14def420369ef14a6f9926e336679c6e5a41ef Addition to fix #1895, skip image if no owner Non conforming image names are not ignored anymore by the new rbd_ls implementation, this patch adds the old behaviour. This fix is a temporary workaround and should be removed, once the new image name parser is ready. Signed-off-by: Alwin Antreich --- diff --git a/PVE/Storage/RBDPlugin.pm b/PVE/Storage/RBDPlugin.pm index 9f0afb6..bd8c28d 100644 --- a/PVE/Storage/RBDPlugin.pm +++ b/PVE/Storage/RBDPlugin.pm @@ -176,6 +176,7 @@ sub rbd_ls { my $image = $el->{image}; my ($owner) = $image =~ m/^(?:vm|base)-(\d+)-/; + next if !defined($owner); $list->{$pool}->{$image} = { name => $image,