hallidave / ruby-snmp

A Ruby implementation of SNMP (the Simple Network Management Protocol).
MIT License
146 stars 63 forks source link

by_name merge problem, value changed to nil #54

Closed jcfoster closed 5 years ago

jcfoster commented 5 years ago

the @by_name.merge! in load_module of mib.rb is setting the value to nil because no value is returned by the code block that generates the warning message. To correct this please add the line - value after the warning message so the block will return the value from the 'oid_hash' hash.