mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
fix :boolean config types
This commit is contained in:
parent
0290314775
commit
f0fb7d5001
1 changed files with 2 additions and 2 deletions
|
@ -135,7 +135,7 @@ module LogStash::Config::Mixin
|
|||
if success
|
||||
params[key] = result if !result.nil?
|
||||
else
|
||||
@logger.error("Failed config #{@plugin_name}/#{key}: #{result} (#{value.inspect}")
|
||||
@logger.error("Failed config #{@plugin_name}/#{key}: #{result} (#{value.inspect})")
|
||||
end
|
||||
|
||||
#puts "Result: #{key} / #{result.inspect} / #{success}"
|
||||
|
@ -202,7 +202,7 @@ module LogStash::Config::Mixin
|
|||
return false, "Expected boolean 'true' or 'false', got #{value.inspect}"
|
||||
end
|
||||
|
||||
result = (value == "true")
|
||||
result = (value.first == "true")
|
||||
end # case validator
|
||||
else
|
||||
return false, "Unknown validator #{validator.class}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue