Data values of zero are now sent to munge method instead of skipped

This commit is contained in:
Eric A. Miller
2013-12-15 20:19:08 -05:00
parent b570fdbc89
commit 3e22e24dc9
2 changed files with 2 additions and 1 deletions

View File

@@ -35,6 +35,7 @@ version 3.09 ()
* Don't assume entity index 1 is the chassis and has serial in Layer3
* Capture serial number on newer Aruba devices
* munge_bits() correctly unpacks BITS
* Data values of zero are now sent to munge method instead of skipped
version 3.08 (2013-10-22)

View File

@@ -4267,7 +4267,7 @@ sub _munge {
my %munged;
foreach my $key ( keys %$data ) {
my $value = $data->{$key};
next unless $value;
next unless defined $value;
$munged{$key} = $subref->($value);
}
return \%munged;