mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-06-24 22:41:06 +00:00
fix Bug #293: CDROM size not reset when set to use no media
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
044321910c
commit
628e9a2b67
@ -72,7 +72,8 @@ my $create_disks = sub {
|
||||
my $volid = $disk->{file};
|
||||
|
||||
if (!$volid || $volid eq 'none' || $volid eq 'cdrom') {
|
||||
$res->{$ds} = $settings->{$ds};
|
||||
delete $disk->{size};
|
||||
$res->{$ds} = PVE::QemuServer::print_drive($vmid, $disk);
|
||||
} elsif ($volid =~ m/^(([^:\s]+):)?(\d+(\.\d+)?)$/) {
|
||||
my ($storeid, $size) = ($2 || $default_storage, $3);
|
||||
die "no storage ID specified (and no default storage)\n" if !$storeid;
|
||||
|
Loading…
Reference in New Issue
Block a user