Change regex for check_lsi_raid

Change regex on "Failure 46" for check_lsi_raid to work with last storcli client (Ver 1.21.06)
This commit is contained in:
Anthony Hausman
2017-07-18 17:01:39 +02:00
parent a17cf6e84f
commit 901fb8a4b8

View File

@ -195,7 +195,7 @@ sub checkCommandStatus{
if($line eq "Status = Success\n"){
return 1;
}
elsif (grep { /Failure\s+46/i } @output){
elsif (grep { /Fail(ed|ure)\s+46/i } @output){
# Return 46 means a drive is not attached, this is a valid failure
return 1;
}