]> git.proxmox.com Git - pve-storage.git/blobdiff - src/PVE/Storage/LvmThinPlugin.pm
lvmthin: import: improve readability
[pve-storage.git] / src / PVE / Storage / LvmThinPlugin.pm
index 96f619bf84f8bcd8b1911faf8a4750d45355f57b..4b23623c7d21052bebf45723527e1a4ed3be6a3c 100644 (file)
@@ -415,7 +415,7 @@ sub volume_import {
            $tempname =~ s/base/vm/;
        }
 
-       ($storeid,my $newname) = PVE::Storage::parse_volume_id($class->SUPER::volume_import(
+       my $newvolid = $class->SUPER::volume_import(
            $scfg,
            $storeid,
            $fh,
@@ -425,7 +425,8 @@ sub volume_import {
            $base_snapshot,
            $with_snapshots,
            $allow_rename
-       ));
+       );
+       ($storeid,my $newname) = PVE::Storage::parse_volume_id($newvolid);
 
        $volname = $class->create_base($storeid, $scfg, $newname);
     }