[pve-devel] [PATCH pve-container] Don't die in vm_shutdown when we have no errors

Emmanuel Kasper e.kasper at proxmox.com
Wed Sep 9 15:41:00 CEST 2015


This fixes bugzilla entry: https://bugzilla.proxmox.com/show_bug.cgi?id=707
---
 src/PVE/API2/LXC/Status.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/API2/LXC/Status.pm b/src/PVE/API2/LXC/Status.pm
index 761a3c8..5e5e116 100644
--- a/src/PVE/API2/LXC/Status.pm
+++ b/src/PVE/API2/LXC/Status.pm
@@ -316,7 +316,7 @@ __PACKAGE__->register_method({
 		run_command($cmd);
 	    }
 
-	    die $err if !$err;
+	    die $err if $err;
 
 	    return;
 	};
-- 
2.1.4





More information about the pve-devel mailing list