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 <a.antreich@proxmox.com>
This commit is contained in:
Alwin Antreich
2018-09-07 10:52:23 +02:00
committed by Thomas Lamprecht
parent 1be93fe2fd
commit aa14def420

View 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,