lvmthin: import: improve readability

the nested call combined with the long parameter list is not very nice to
format/read, let's split it..

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler
2024-04-18 15:10:46 +02:00
parent f8a368c63c
commit a12671ae97

View 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);
}