mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-29 20:58:54 +00:00
fix assertion
This commit is contained in:
parent
35c5fdefce
commit
b91c2aae28
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user