From 9c56b158d07424c3848a5ee8e69139dc649e1329 Mon Sep 17 00:00:00 2001
From: Mathieu Alorent <github@kumy.net>
Date: Mon, 19 May 2014 13:44:59 +0200
Subject: [PATCH] Close Issue#1

"Can't show second Logical device number"
---
 lib/Parse/Arcconf.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/Parse/Arcconf.pm b/lib/Parse/Arcconf.pm
index 5c9cce1..1a5d99c 100644
--- a/lib/Parse/Arcconf.pm
+++ b/lib/Parse/Arcconf.pm
@@ -197,7 +197,7 @@ sub parse_config_fh
 
     next if(!defined($current_controller));
 
-    if($line =~ /^Logical drive information/) {
+    if($line =~ /^Logical drive information/ or $line =~ /^Logical device information/) {
 	LEVEL4: while($line = <$fh>) {
 		chomp $line;
 
@@ -217,7 +217,7 @@ sub parse_config_fh
 	                  	} elsif ($line =~ /^\S+.*\w\s+(\d+)$/) {
                                         $current_logical_drive = $1;
 	                  		last LEVEL5;
-	                  	} elsif ($line =~ /^$/) {
+	                  	} elsif ($line =~ /^-+$/) {
 	                  		last LEVEL4;
 	                  	} elsif ($line =~ /^\s+-+$/) {
 					next;
-- 
GitLab