Skip to content
Snippets Groups Projects
Commit 036d0655 authored by Gerhard Gonter's avatar Gerhard Gonter :speech_balloon:
Browse files

parse multiple physical devices (see [1]) and parse attributes of

physical devices with punctuation characters in their names, e.g.:

```
         Reported Channel,Device(T:L)       : 0,0(0:0)
         S.M.A.R.T.                         : No
         S.M.A.R.T. warnings                : 0
```

* [1] https://github.com/kumy/Parse-Arcconf/issues/2
parent 9c56b158
No related branches found
No related tags found
No related merge requests found
......@@ -238,12 +238,12 @@ sub parse_config_fh
$current_physical_drive = $1;
} elsif ($line =~ /^\s+Device is (.*\w)/) {
$ctrl->{'physical drive'}{$current_physical_drive}{'Device is'} = $1;
} elsif ($line =~ /^\s+(.*\w)\s+:\s+(.*)$/) {
} elsif ($line =~ /^\s+(.*[\w\)\.]+)\s+:\s+(.*)$/) {
$ctrl->{'physical drive'}{$current_physical_drive}{$1} = $2;
} elsif ($line =~ /^\s+-+$/) {
last LEVEL3;
} elsif ($line =~ /^$/) {
last LEVEL2;
# last LEVEL2;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment