Password is optional

This commit is contained in:
Jordan Sissel 2012-09-03 22:12:15 -07:00
parent a5bfa5526b
commit 031ef354fd

View file

@ -108,7 +108,7 @@ class LogStash::Outputs::Redis < LogStash::Outputs::Base
:port => @port,
:timeout => @timeout,
:db => @db,
:password => @password.value
:password => @password.nil? ? nil : @password.value
)
end # def connect
@ -118,7 +118,6 @@ class LogStash::Outputs::Redis < LogStash::Outputs::Base
@name || "redis://#{@password}@#{@host}:#{@port}/#{@db} #{@data_type}:#{@key}"
end
public
def receive(event)
return unless output?(event)