mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-01 02:32:55 +00:00
print drive commandline: code cleanup
Drop unused $volname variable and in-line single-use $volid variable. Signed-off-by: Fiona Ebner <f.ebner@proxmox.com> Reviewed-by: Fabian Grünbichler <f.gruenbichler@proxmox.com> Tested-by: Friedrich Weber <f.weber@proxmox.com>
This commit is contained in:
parent
b9677ce1ee
commit
098d94739b
@ -1463,10 +1463,9 @@ my sub drive_uses_cache_direct {
|
||||
sub print_drive_commandline_full {
|
||||
my ($storecfg, $vmid, $drive, $live_restore_name, $io_uring) = @_;
|
||||
|
||||
my $volid = $drive->{file};
|
||||
my $drive_id = PVE::QemuServer::Drive::get_drive_id($drive);
|
||||
|
||||
my ($storeid, $volname) = PVE::Storage::parse_volume_id($volid, 1);
|
||||
my ($storeid) = PVE::Storage::parse_volume_id($drive->{file}, 1);
|
||||
my $scfg = $storeid ? PVE::Storage::storage_config($storecfg, $storeid) : undef;
|
||||
|
||||
my ($path, $format) = PVE::QemuServer::Drive::get_path_and_format(
|
||||
|
Loading…
Reference in New Issue
Block a user