[pve-devel] [PATCH v2 2/2] HA resources check before destroying vm
Alen Grizonic
a.grizonic at proxmox.com
Fri Aug 28 17:22:35 CEST 2015
[PATCH v2] error message changed
---
PVE/API2/Qemu.pm | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm
index a6ad831..73a1572 100644
--- a/PVE/API2/Qemu.pm
+++ b/PVE/API2/Qemu.pm
@@ -1143,8 +1143,7 @@ __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";
- }
+ die "unable to remove VM $vmid - used in HA resources\n";}
my $realcmd = sub {
my $upid = shift;
--
2.1.4
More information about the pve-devel
mailing list