Support undefined (noSuchIntance) values in Offline mode

This commit is contained in:
Oliver Gorwits
2016-02-25 07:49:55 +00:00
parent 8426620572
commit 9685c3afa8
2 changed files with 7 additions and 1 deletions

View File

@@ -1,5 +1,11 @@
SNMP::Info - Friendly OO-style interface to Network devices using SNMP.
version 3.32 ()
[BUG FIXES]
* Support undefined (noSuchIntance) values in Offline mode
version 3.31 (2016-01-22)
[ENHANCEMENTS]

View File

@@ -3814,7 +3814,7 @@ sub _global {
# Return cached data unless loading
# We now store in raw format so munge before returning
# unless expecting raw data
if ( defined $self->{"_$attr"} && !$load ) {
if ( exists $self->{"_$attr"} && !$load ) {
my $val = $self->{"_$attr"};
if ( !$raw ) {