rbd : add owner attribute when rbs ls

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier
2012-06-18 14:06:39 +02:00
committed by Dietmar Maurer
parent 4e2d3bc8ea
commit d70e7f6c0d

View File

@ -31,12 +31,18 @@ sub rbd_ls{
$line = trim($line);
my ($image) = $line;
my $owner;
if ($image =~ m/^(vm-(\d+)-\S+)$/) {
$owner = $2;
}
$list->{$rbdpool}->{$image} = {
name => $image,
size => "",
size => "",
vmid => $owner
};
});
};