Skip to content

Commit

Permalink
Merge pull request #54 from Tontonitch/patch-1
Browse files Browse the repository at this point in the history
fix #53 - hash ref problem
  • Loading branch information
tgoetheyn authored Nov 15, 2017
2 parents cc141ea + a0ec113 commit f2083ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check_netapp_ontap.pl
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ sub calc_spare_health {
my ($spareCount, $unassignedCount, $unknownCount, $notZeroedCount) = (0, 0, 0, 0);
my $strNewMessage;

foreach my $strSpare (keys $hrefSpareInfo->{$node}) {
foreach my $strSpare (keys %{$hrefSpareInfo->{$node}}) {
$intObjectCount++;

my $zeroedStatus = $hrefSpareInfo->{$node}->{$strSpare}->{'zeroed'};
Expand Down

0 comments on commit f2083ed

Please sign in to comment.