mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
Merge pull request #800 from wiibaa/validation
Output an error on unknown validation symbol
This commit is contained in:
commit
3cb67f41ac
2 changed files with 3 additions and 1 deletions
|
@ -443,6 +443,8 @@ module LogStash::Config::Mixin
|
|||
end
|
||||
|
||||
result = value.first
|
||||
else
|
||||
return false, "Unknown validator symbol #{validator}"
|
||||
end # case validator
|
||||
else
|
||||
return false, "Unknown validator #{validator.class}"
|
||||
|
|
|
@ -51,7 +51,7 @@ class LogStash::Filters::DNS < LogStash::Filters::Base
|
|||
# versions was 'append' by accident.
|
||||
|
||||
# resolv calls will be wrapped in a timeout instance
|
||||
config :timeout, :validate => :int, :default => 2
|
||||
config :timeout, :validate => :number, :default => 2
|
||||
|
||||
public
|
||||
def register
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue