mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
Merge pull request #950 from AKoetsier/master
Fixes exception when not specifying yamlmibdir
This commit is contained in:
commit
f43bda7f4a
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ class LogStash::Inputs::Snmptrap < LogStash::Inputs::Base
|
|||
private
|
||||
def snmptrap_listener(output_queue)
|
||||
traplistener_opts = {:Port => @port, :Community => @community, :Host => @host}
|
||||
if !@yaml_mibs.empty?
|
||||
if @yaml_mibs && !@yaml_mibs.empty?
|
||||
traplistener_opts.merge!({:MibDir => @yamlmibdir, :MibModules => @yaml_mibs})
|
||||
end
|
||||
@logger.info("It's a Trap!", traplistener_opts.dup)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue