Merge pull request #27 from keith4/master

Update storcli command syntax to work with new(er) storcli versions
This commit is contained in:
Georg Schönberger
2020-08-26 10:51:23 +02:00
committed by GitHub

View File

@ -234,13 +234,8 @@ sub getControllerInfo{
my $command = '';
$storcli =~ /^(.*)\/c[0-9]+/;
if(!defined($writelogs)){
$command = $1.'adpallinfo a'.$CONTROLLER.' -NoLog';
}
else{
$command = $1.'adpallinfo a'.$CONTROLLER;
}
$command = $1.'/c'.$CONTROLLER.' show';
push @{$commands_a}, $command;
my @output = `$command`;
if($? >> 8 != 0){