Nexus.pm prints output even if $self->debug() is unset. (#243)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user