mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-12 05:36:52 +00:00
forbid restore into existing template
This commit is contained in:
parent
7147c8977a
commit
3a07a8a9ff
@ -490,6 +490,10 @@ __PACKAGE__->register_method({
|
|||||||
|
|
||||||
die "unable to restore vm $vmid - vm is running\n"
|
die "unable to restore vm $vmid - vm is running\n"
|
||||||
if PVE::QemuServer::check_running($vmid);
|
if PVE::QemuServer::check_running($vmid);
|
||||||
|
|
||||||
|
die "unable to restore vm $vmid - vm is a template\n"
|
||||||
|
if PVE::QemuConfig->is_template($conf);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
die "unable to restore vm $vmid - already existing on cluster node '$current_node'\n";
|
die "unable to restore vm $vmid - already existing on cluster node '$current_node'\n";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user