5
0
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:
Alen Grizonic 2015-08-28 13:26:40 +02:00 committed by Dietmar Maurer
parent 8708ff338a
commit e9f2f8e5f9

View File

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