From 4cab6507afd073a1f9b8c16615efc3b253e0380e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georg=20Sch=C3=B6nberger?= Date: Fri, 28 Feb 2014 16:03:50 +0100 Subject: [PATCH] Added missing brackets --- check_lsi_raid | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/check_lsi_raid b/check_lsi_raid index a6eec61..f17fb55 100755 --- a/check_lsi_raid +++ b/check_lsi_raid @@ -373,7 +373,7 @@ sub getLogicalDeviceStatus { $command .= " show $action"; my @output = `$command`; - if(checkCommandStatus(\@output) { + if(checkCommandStatus(\@output)) { if($action eq "all") { my $output_dev = -1; my $flag = -1; @@ -472,7 +472,7 @@ sub getPhysDeviceStatus { $command .= " show $action"; my @output = `$command`; - if(checkCommandStatus(\@output) { + if(checkCommandStatus(\@output)) { if($action eq "all") { my $output_enc = -1; my $output_dev = -1; @@ -666,7 +666,7 @@ sub getBBUStatus { my @output = `$command`; - if(checkCommandStatus(\@output) { + if(checkCommandStatus(\@output)) { my $blockid = 0; foreach my $line (@output) { my $first; @@ -789,7 +789,7 @@ sub getCVStatus { my $statusMessage = ''; my @output = `$command`; - if(checkCommandStatus(\@output) { + if(checkCommandStatus(\@output)) { my $currBlock; foreach my $line (@output) { if($line =~ /^(Cachevault_Info|Firmware_Status)/){ @@ -834,13 +834,13 @@ sub checkBBUorCVIsPresent{ my ($bbu,$cv); my $command = "$sudo $storcli /c$controller/bbu show"; my @output = `$command`; - if(checkCommandStatus(\@output) { + if(checkCommandStatus(\@output)) { $bbu = 1; } else{$bbu = 0}; $command = "$sudo $storcli /c$controller/cv show"; @output = `$command`; - if(checkCommandStatus(\@output) { + if(checkCommandStatus(\@output)) { $cv = 1; } else{$cv = 0};