]> git.proxmox.com Git - pve-container.git/commit - src/PVE/API2/LXC.pm
api: clone_vm: don't include snapshot properties
authorOguz Bektas <o.bektas@proxmox.com>
Wed, 13 Oct 2021 12:31:53 +0000 (14:31 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 14 Oct 2021 09:34:46 +0000 (11:34 +0200)
commit04a34c5688d4fd813023a57c24c43498bc606093
tree561f69cc91454ef87f242ae2125029f282fbe15a
parentc501e4cec72f324c182845b95e3b932a194506e8
api: clone_vm: don't include snapshot properties

apparently this caused a weird[0] bug... when a container with a snapshot was
cloned, it would take 'parent: foo' from the original container. if you
add a new snapshot 'bar', and then another one 'foo', this causes the
snapshots to become parents of each other (thus not parsed correctly in
the tree view of GUI nor with 'pct listsnapshot CTID')

we also drop these properties for VMs, so it makes sense to do the same
here as well.

[0]: https://forum.proxmox.com/threads/snapshots-of-one-lxc-disappeared.97711/

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
src/PVE/API2/LXC.pm