mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
Password is optional
This commit is contained in:
parent
a5bfa5526b
commit
031ef354fd
1 changed files with 1 additions and 2 deletions
|
@ -108,7 +108,7 @@ class LogStash::Outputs::Redis < LogStash::Outputs::Base
|
||||||
:port => @port,
|
:port => @port,
|
||||||
:timeout => @timeout,
|
:timeout => @timeout,
|
||||||
:db => @db,
|
:db => @db,
|
||||||
:password => @password.value
|
:password => @password.nil? ? nil : @password.value
|
||||||
)
|
)
|
||||||
end # def connect
|
end # def connect
|
||||||
|
|
||||||
|
@ -118,7 +118,6 @@ class LogStash::Outputs::Redis < LogStash::Outputs::Base
|
||||||
@name || "redis://#{@password}@#{@host}:#{@port}/#{@db} #{@data_type}:#{@key}"
|
@name || "redis://#{@password}@#{@host}:#{@port}/#{@db} #{@data_type}:#{@key}"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
public
|
public
|
||||||
def receive(event)
|
def receive(event)
|
||||||
return unless output?(event)
|
return unless output?(event)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue