[pve-devel] [PATCH storage 1/4] rbd: use correct key to access hash elements
Fabian Grünbichler
f.gruenbichler at proxmox.com
Tue Sep 13 14:38:47 CEST 2016
---
Note: this is relevant since the next patch modifies $volname!
PVE/Storage/RBDPlugin.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/PVE/Storage/RBDPlugin.pm b/PVE/Storage/RBDPlugin.pm
index 6c33886..9833ca6 100644
--- a/PVE/Storage/RBDPlugin.pm
+++ b/PVE/Storage/RBDPlugin.pm
@@ -495,7 +495,7 @@ sub list_images {
my $volid = "$storeid:$volname";
- my $owner = $dat->{$volname}->{vmid};
+ my $owner = $dat->{$image}->{vmid};
if ($vollist) {
my $found = grep { $_ eq $volid } @$vollist;
next if !$found;
@@ -503,7 +503,7 @@ sub list_images {
next if defined ($vmid) && ($owner ne $vmid);
}
- my $info = $dat->{$volname};
+ my $info = $dat->{$image};
$info->{volid} = $volid;
$info->{format} = 'raw';
--
2.1.4
More information about the pve-devel
mailing list