]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/Storage/LVMPlugin.pm
fix return value for path()
[pve-storage.git] / PVE / Storage / LVMPlugin.pm
index 7f4e74caa8ff27f1c19fe3ddb20d43e170090e42..8c0b61361a696f2c1d3ef62db6ae033f6ca9ac4b 100644 (file)
@@ -231,7 +231,7 @@ sub path {
     
     my $path = "/dev/$vg/$name";
 
-    return ($path, $vmid, $vtype);
+    return wantarray ? ($path, $vmid, $vtype) : $path;
 }
 
 sub alloc_image {