Merge pull request #800 from wiibaa/validation

Output an error on unknown validation symbol
This commit is contained in:
Richard Pijnenburg 2013-11-26 00:49:49 -08:00
commit 3cb67f41ac
2 changed files with 3 additions and 1 deletions

View file

@ -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}"

View file

@ -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