]> git.proxmox.com Git - pve-storage.git/commitdiff
Addition to fix #1895, skip image if no owner
authorAlwin Antreich <a.antreich@proxmox.com>
Fri, 7 Sep 2018 08:52:23 +0000 (10:52 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 7 Sep 2018 11:51:18 +0000 (13:51 +0200)
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 <a.antreich@proxmox.com>
PVE/Storage/RBDPlugin.pm

index 9f0afb681814ffd8b437ba3050b147bad6fa6fc0..bd8c28d86e3f25815c42e0960d038015974b2428 100644 (file)
@@ -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,