mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-04 16:38:16 +00:00
Use 'volname' instead of 'volid' for 'qemu_img_format'
As 'qemu_img_format' just matches a regex, this doesn't make much of a difference, but AFAICT all other calls of 'qemu_img_format' use 'volname'. Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
c3c5d2b6b3
commit
301c675281
@ -5387,7 +5387,7 @@ sub vm_start {
|
||||
$format = (grep {$fileFormat eq $_} @{$validFormats}) ? $fileFormat : $defFormat;
|
||||
} else {
|
||||
my $scfg = PVE::Storage::storage_config($storecfg, $storeid);
|
||||
$format = qemu_img_format($scfg, $volid);
|
||||
$format = qemu_img_format($scfg, $volname);
|
||||
}
|
||||
|
||||
my $newvolid = PVE::Storage::vdisk_alloc($storecfg, $storeid, $vmid, $format, undef, ($drive->{size}/1024));
|
||||
|
Loading…
Reference in New Issue
Block a user