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,
|
||||
: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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue