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:
committed by
Thomas Lamprecht
parent
1be93fe2fd
commit
aa14def420
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user