Signed-off-by: Alexandre Derumier <aderum...@odiso.com> --- PVE/QemuServer.pm | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 8955b7c..59effb6 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -3266,6 +3266,8 @@ sub vm_destroy { my $conf = load_config($vmid); + die "you can't delete a vm if template exist" if is_template($conf, undef, 1); + check_lock($conf) if !$skiplock; if (!check_running($vmid)) { -- 1.7.10.4 _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel