]> git.proxmox.com Git - qemu-server.git/commit
ensure correct machine type gets saved on snapshot
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 14 Sep 2018 12:08:43 +0000 (14:08 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 17 Sep 2018 13:48:05 +0000 (15:48 +0200)
commitc6737ef18b17c1a32337bbae60ff4b0c97ab0faa
tree44bb5759d66381ec7b931bd887ad6409a2ca0dbf
parent58b1a8d75d9501297e205f9c2c3303c54204ecb3
ensure correct machine type gets saved on snapshot

instead of overwriting the 'machine' config in the snapshot,
use its own 'runningmachine' config only for the snapshot

this way, we do not lose the machine type if it was
explicitely set during the snapshot, but deleted afterwards

we also have to adapt the tests for this

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/QemuConfig.pm
PVE/QemuServer.pm
test/snapshot-expected/create/qemu-server/102.conf
test/snapshot-expected/create/qemu-server/104.conf
test/snapshot-expected/create/qemu-server/106.conf
test/snapshot-expected/prepare/qemu-server/102.conf
test/snapshot-expected/prepare/qemu-server/104.conf
test/snapshot-test.pm