fix assertion

This commit is contained in:
Dietmar Maurer 2013-04-22 09:43:54 +02:00
parent 35c5fdefce
commit b91c2aae28

View File

@ -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;