mirror of
https://github.com/thomas-krenn/check_lsi_raid.git
synced 2026-03-04 00:12:42 +01:00
Exit if PD command fails
This commit is contained in:
@@ -481,7 +481,7 @@ sub getPhysicalDevices{
|
||||
|
||||
my @output = `$command`;
|
||||
my @foundDevs;
|
||||
if(checkCommandStatus(\@output)) {
|
||||
if(checkCommandStatus(\@output)){
|
||||
if($action eq "all") {
|
||||
my $currBlock;
|
||||
my $line_ref;
|
||||
@@ -555,6 +555,10 @@ sub getPhysicalDevices{
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
print "Invalid StorCLI command! ($command)\n";
|
||||
exit(STATE_UNKNOWN);
|
||||
}
|
||||
return \@foundDevs;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user