]> git.proxmox.com Git - qemu-server.git/commit
fix #2382: delete cloudinit disk before restoring
authorMira Limbeck <m.limbeck@proxmox.com>
Wed, 25 Sep 2019 13:30:12 +0000 (15:30 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 25 Sep 2019 14:53:29 +0000 (16:53 +0200)
commita82348eb343b64496035f7ed74cecfc364a046fb
tree67cc4d0e231f87238c40e81f8b3dde11f1496d4e
parent2135fcdb3673b9befba9be69a33513c25143cd7e
fix #2382: delete cloudinit disk before restoring

The fix introduced in commit bf4a933 did not work as intended. We're
iterating over the $oldconf, not over $virtdev_hash. This means
$drive->{is_cloudinit} is always undefined. Instead use the $exclude_cloudinit
parameter from drive_is_cdrom().

Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
PVE/QemuServer.pm