mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-02-03 13:47:15 +03:00
HA resources check before destroying vm
This commit is contained in:
parent
8708ff338a
commit
e9f2f8e5f9
@ -1142,6 +1142,10 @@ __PACKAGE__->register_method({
|
||||
|
||||
my $storecfg = PVE::Storage::config();
|
||||
|
||||
if (PVE::HA::Config::vm_is_ha_managed($vmid)) {
|
||||
die "unable to delete VM $vmid - used in HA resources\n";
|
||||
}
|
||||
|
||||
my $realcmd = sub {
|
||||
my $upid = shift;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user