mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
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:
parent
fc39bba223
commit
48b78e8c58
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue