From fc1089fc3a2d6c6347f295022f4bcf8cc75d16db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Mon, 10 Apr 2017 15:29:29 +0200 Subject: [PATCH] fix run_command return code handling --- 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"; }