mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-30 16:46:51 +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);
|
PVE::QemuServer::check_lock($conf);
|
||||||
|
|
||||||
die "unable to create template, because VM contains snapshots\n"
|
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"
|
die "you can't convert a template to a template\n"
|
||||||
if PVE::QemuServer::is_template($conf) && !$disk;
|
if PVE::QemuServer::is_template($conf) && !$disk;
|
||||||
|
Loading…
Reference in New Issue
Block a user