Signed-off-by: Alexandre Derumier <[email protected]>
---
PVE/QemuServer.pm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 8e0a378..0ddbc29 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -4474,9 +4474,11 @@ sub template_create {
if($conf->{snapshots}){
delete $conf->{parent};
delete $conf->{snapshots};
- PVE::QemuServer::update_config_nolock($vmid, $conf, 1);
#fixme : do we need to delete disks snapshots ?
}
+ $conf->{template} = 1;
+ PVE::QemuServer::update_config_nolock($vmid, $conf, 1);
+
}
sub is_template {
--
1.7.10.4
_______________________________________________
pve-devel mailing list
[email protected]
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel