Fix a regression where untyped fields would return null values

This patch fixes a bug where config fields declared without a type
would just return null.

Fixes #5512
This commit is contained in:
Andrew Cholakian 2016-06-16 12:56:56 -05:00
parent fc39bba223
commit 48b78e8c58

View file

@ -430,7 +430,7 @@ module LogStash::Config::Mixin
result = nil
if validator.nil?
return true
return true, value
elsif validator.is_a?(Array)
value = [*value]
if value.size > 1