]> git.proxmox.com Git - qemu-server.git/blobdiff - PVE/QemuServer.pm
do not allow template creation if there are snapshots.
[qemu-server.git] / PVE / QemuServer.pm
index afc9976df670bccffe7aa510a5ede24d178292f2..ba75975246707a0284e3b90a9a13a0019dcc2f15 100644 (file)
@@ -4462,11 +4462,6 @@ sub template_create {
        PVE::QemuServer::update_config_nolock($vmid, $conf, 1);
 
     });
-    if($conf->{snapshots}){
-       delete $conf->{parent};
-       delete $conf->{snapshots};
-       #fixme : do we need to delete disks snapshots ?
-    }
     $conf->{template} = 1;
     PVE::QemuServer::update_config_nolock($vmid, $conf, 1);
 }