[pve-devel] applied: [PATCH storage] fix run_command return code handling

Fabian Grünbichler f.gruenbichler at proxmox.com
Mon Apr 10 15:30:59 CEST 2017


Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
Note: the other case looks okay to me, and I didn't find other occurences..

 PVE/Storage.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/Storage.pm b/PVE/Storage.pm
index eb7000f..50c2f3f 100755
--- a/PVE/Storage.pm
+++ b/PVE/Storage.pm
@@ -1395,7 +1395,7 @@ sub extract_vzdump_config_vma {
 	my $rerr = $@;
 
 	# use exit code if no stderr output and not just broken pipe
-	if (!$errstring && !$broken_pipe && $rc > 0 && $rc != 141) {
+	if (!$errstring && !$broken_pipe && $rc != 0 && $rc != 141) {
 	    die "$rerr\n" if $rerr;
 	    die "config extraction failed with exit code $rc\n";
 	}
-- 
2.1.4





More information about the pve-devel mailing list