From df8fbc3c0392e4724d4944900c910719dad29229 Mon Sep 17 00:00:00 2001 From: dtuecks <35301754+dtuecks@users.noreply.github.com> Date: Sun, 28 Jan 2018 19:36:06 +0100 Subject: [PATCH] Nexus.pm prints output even if $self->debug() is unset. (#243) --- lib/SNMP/Info/Layer3/Nexus.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/SNMP/Info/Layer3/Nexus.pm b/lib/SNMP/Info/Layer3/Nexus.pm index df53e9e5..8b2852a5 100644 --- a/lib/SNMP/Info/Layer3/Nexus.pm +++ b/lib/SNMP/Info/Layer3/Nexus.pm @@ -105,9 +105,9 @@ sub _get_snmpid_chassis { } } if ( defined $snmpid_chassis && defined $position ) { - printf(" %s - chassis with id %s, position %s selected\n", $funcname, $snmpid_chassis, $position); + printf(" %s - chassis with id %s, position %s selected\n", $funcname, $snmpid_chassis, $position) if $self->debug(); } else { - printf(" %s - no chassis found\n", $funcname); + printf(" %s - no chassis found\n", $funcname) if $self->debug(); } return $snmpid_chassis;