]> git.proxmox.com Git - qemu-server.git/commitdiff
fix bug #688: prevent copy unused disks in the config.
authorWolfgang Link <w.link@proxmox.com>
Thu, 20 Aug 2015 07:14:34 +0000 (09:14 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 20 Aug 2015 10:28:05 +0000 (12:28 +0200)
PVE/API2/Qemu.pm

index c4516defa4bf7de6217a068e0205dd62a6c8c0c2..0dd413be6eb2ea588093811316d03b5fbe74d973 100644 (file)
@@ -2173,6 +2173,9 @@ __PACKAGE__->register_method({
                next if $opt eq 'snapshots' ||  $opt eq 'parent' || $opt eq 'snaptime' ||
                    $opt eq 'vmstate' || $opt eq 'snapstate';
 
+               # no need to copy unused images, because VMID(owner) changes anyways
+               next if $opt =~ m/^unused\d+$/;
+
                # always change MAC! address
                if ($opt =~ m/^net(\d+)$/) {
                    my $net = PVE::QemuServer::parse_net($value);