]> git.proxmox.com Git - qemu-server.git/commitdiff
drop unncessary cdromhash
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 17 Jun 2016 14:12:29 +0000 (16:12 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 17 Jun 2016 14:28:07 +0000 (16:28 +0200)
PVE/QemuMigrate.pm

index e7a1d8a0716e05ade684e535dbcb3399d27caf8c..1305b5ca3803b7e09fcd0141aec6f5861cebbe3a 100644 (file)
@@ -225,7 +225,6 @@ sub sync_disks {
     eval {
 
        my $volhash = {};
-       my $cdromhash = {};
 
        my $sharedvm = 1;
 
@@ -261,7 +260,6 @@ sub sync_disks {
            if ($is_cdrom) {
                die "can't migrate local cdrom drive\n" if $volid eq 'cdrom';
                return if $volid eq 'none';
-               $cdromhash->{$volid} = 1;
            }
 
            my ($sid, $volname) = PVE::Storage::parse_volume_id($volid);
@@ -274,7 +272,7 @@ sub sync_disks {
 
            $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);