fix run_command return code handling
This commit is contained in:
@ -1395,7 +1395,7 @@ sub extract_vzdump_config_vma {
|
|||||||
my $rerr = $@;
|
my $rerr = $@;
|
||||||
|
|
||||||
# use exit code if no stderr output and not just broken pipe
|
# 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 "$rerr\n" if $rerr;
|
||||||
die "config extraction failed with exit code $rc\n";
|
die "config extraction failed with exit code $rc\n";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user