Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions lib/App/Monitoring/Plugin/CheckRaid/Plugins/arcconf.pm
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,14 @@ sub process_physical_device_information {
my (@pd, $cs, $s);
while (my($ch, $channel_data) = each %$data) {
while (my($pd, $d) = each %$channel_data) {
# FIXME: fallback to 'Device Phy Information' due parser bug
$cs = $d->{_} || $d->{'Device Phy Information'};
# Due to parser bugs not resetting the subsection, flatten all the
# subsections into a single Hash
$cs = {};
foreach my $subsection (values %$d) {
foreach my $key (keys %$subsection) {
$cs->{$key} = $subsection->{$key};
}
}

# FIXME: this should be skipped in check process, not here
if ($pd eq '') {
Expand Down