From 188aca388e75ef2076100d48f83b518c564c80e0 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 31 Jan 2013 08:47:27 +0100 Subject: [PATCH] return the volid, not the storage path --- PVE/Storage.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/Storage.pm b/PVE/Storage.pm index 9bb8185..710c7ae 100755 --- a/PVE/Storage.pm +++ b/PVE/Storage.pm @@ -298,7 +298,7 @@ sub path_to_volume_id { my ($sid, $volname) = parse_volume_id($path, 1); if ($sid) { if (my $scfg = $ids->{$sid}) { - if (my $path = $scfg->{path}) { + if ($scfg->{path}) { my $plugin = PVE::Storage::Plugin->lookup($scfg->{type}); my ($vtype, $name, $vmid) = $plugin->parse_volname($volname); return ($vtype, $path);