return the volid, not the storage path

This commit is contained in:
Dietmar Maurer
2013-01-31 08:47:27 +01:00
parent ad27ee3e4a
commit 188aca388e

View File

@ -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);