From 4c8f7e298eb664d706bd5799f3fb2427ef8ab735 Mon Sep 17 00:00:00 2001 From: Endgame IT Date: Mon, 27 Feb 2017 09:19:05 -0500 Subject: [PATCH] fix error if debug is enabled (#213) --- Info/Layer3/Nexus.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Info/Layer3/Nexus.pm b/Info/Layer3/Nexus.pm index aab94c8c..57a21b6f 100644 --- a/Info/Layer3/Nexus.pm +++ b/Info/Layer3/Nexus.pm @@ -91,7 +91,7 @@ sub _get_snmpid_chassis { for ( keys %$entity_entry ) { # filter by class (chassis is 3, but with proper MIBs loaded we should get the translated textual value) if ( ($entity_entry->{$_} eq 'chassis') or ($entity_entry->{$_} eq '3') ) { - printf("%s - chassis with id %s found, position %s\n", $funcname, $_, $self->snmpinfo->e_pos->{$_}) if $self->debug(); + printf("%s - chassis with id %s found, position %s\n", $funcname, $_, $self->e_pos->{$_}) if $self->debug(); # and if it's the topmost one if ( !defined $position || $self->e_pos->{$_} < $position ) {