]> git.proxmox.com Git - pve-container.git/commitdiff
fix #3016: clone: do not copy snapshot config
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 22 Sep 2020 06:32:39 +0000 (08:32 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 22 Sep 2020 06:32:46 +0000 (08:32 +0200)
those entries belong to the source CT, not the target.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
src/PVE/API2/LXC.pm

index ced30939f49684cf6b28619abbbe41929614c777..9ecfb12d3ea0c6f85a61c8ba7e950c8ccb1a5522 100644 (file)
@@ -1465,6 +1465,7 @@ __PACKAGE__->register_method({
                # Replace the 'disk' lock with a 'create' lock.
                $newconf->{lock} = 'create';
 
+               delete $newconf->{snapshots};
                delete $newconf->{pending};
                delete $newconf->{template};
                if ($param->{hostname}) {