diff --git a/Changes b/Changes index 49baa81e..d617306b 100644 --- a/Changes +++ b/Changes @@ -2,6 +2,7 @@ version 3.50 [BUG FIXES] + * #227 remove bogus can() check in _set() * Fix SNMP::Info::IEEE802dot3ad when more than 1 LAG version 3.49 (2018-03-03) diff --git a/lib/SNMP/Info.pm b/lib/SNMP/Info.pm index 447b43cf..fcee04c9 100644 --- a/lib/SNMP/Info.pm +++ b/lib/SNMP/Info.pm @@ -3983,16 +3983,6 @@ sub _set { # Instance is 0 for scalars without a supplied instance $var_list->[1] = $list_iid = defined $list_iid ? $list_iid : '0'; - # Check if this method is from a sub or from the tables. - if ( $self->can($list_attr) ) { - $self->error_throw( - "SNMP::Info::_set($list_attr,$list_val) - Failed. $list_attr is generated in a sub(). set_$list_attr sub required." - ); - - # if sub set_attr() existed, we wouldn't have gotten this far. - return; - } - # Lookup oid my $oid = undef; $oid = $list_attr if SNMP::translateObj($list_attr);