[pve-devel] [PATCH v2 2/2] HA resources check before destroying lxc

Alen Grizonic a.grizonic at proxmox.com
Fri Aug 28 17:22:36 CEST 2015


[PATCH v2] error message changed
---
 src/PVE/API2/LXC.pm | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm
index 303f0ce..935493b 100644
--- a/src/PVE/API2/LXC.pm
+++ b/src/PVE/API2/LXC.pm
@@ -532,9 +532,8 @@ __PACKAGE__->register_method({
 
 	my $storage_cfg = cfs_read_file("storage.cfg");
 
-        if (PVE::HA::Config::vm_is_ha_managed($vmid)) {
-	    die "unable to delete CT $vmid - used in HA resources\n";
-        }
+	if (PVE::HA::Config::vm_is_ha_managed($vmid)) {
+	    die "unable to remove CT $vmid - used in HA resources\n";}
 
 	my $code = sub {
 	    # reload config after lock
-- 
2.1.4





More information about the pve-devel mailing list