mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-07 16:21:31 +00:00
drop unncessary cdromhash
This commit is contained in:
parent
98d80cb67b
commit
2a2127bd6d
@ -225,7 +225,6 @@ sub sync_disks {
|
|||||||
eval {
|
eval {
|
||||||
|
|
||||||
my $volhash = {};
|
my $volhash = {};
|
||||||
my $cdromhash = {};
|
|
||||||
|
|
||||||
my $sharedvm = 1;
|
my $sharedvm = 1;
|
||||||
|
|
||||||
@ -261,7 +260,6 @@ sub sync_disks {
|
|||||||
if ($is_cdrom) {
|
if ($is_cdrom) {
|
||||||
die "can't migrate local cdrom drive\n" if $volid eq 'cdrom';
|
die "can't migrate local cdrom drive\n" if $volid eq 'cdrom';
|
||||||
return if $volid eq 'none';
|
return if $volid eq 'none';
|
||||||
$cdromhash->{$volid} = 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
my ($sid, $volname) = PVE::Storage::parse_volume_id($volid);
|
my ($sid, $volname) = PVE::Storage::parse_volume_id($volid);
|
||||||
@ -274,7 +272,7 @@ sub sync_disks {
|
|||||||
|
|
||||||
$sharedvm = 0;
|
$sharedvm = 0;
|
||||||
|
|
||||||
die "can't migrate local cdrom '$volid'\n" if $cdromhash->{$volid};
|
die "can't migrate local cdrom '$volid'\n" if $is_cdrom;
|
||||||
|
|
||||||
my ($path, $owner) = PVE::Storage::path($self->{storecfg}, $volid);
|
my ($path, $owner) = PVE::Storage::path($self->{storecfg}, $volid);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user