[pve-devel] applied: [PATCH container] fix #3016: clone: do not copy snapshot config
Fabian Grünbichler
f.gruenbichler at proxmox.com
Tue Sep 22 08:40:42 CEST 2020
those entries belong to the source CT, not the target.
Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
src/PVE/API2/LXC.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm
index ced3093..9ecfb12 100644
--- a/src/PVE/API2/LXC.pm
+++ b/src/PVE/API2/LXC.pm
@@ -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}) {
--
2.20.1
More information about the pve-devel
mailing list