From b91c2aae287169f4e611000f735bd1af70cad0dc Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Mon, 22 Apr 2013 09:43:54 +0200 Subject: [PATCH] fix assertion --- PVE/API2/Qemu.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index f6d4eaec..7d716703 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -2393,7 +2393,7 @@ __PACKAGE__->register_method({ PVE::QemuServer::check_lock($conf); die "unable to create template, because VM contains snapshots\n" - if $conf->{snapshots}; + if $conf->{snapshots} && scalar(keys %{$conf->{snapshots}}); die "you can't convert a template to a template\n" if PVE::QemuServer::is_template($conf) && !$disk;