Handle duplicate config entries

Fixes #10619
This commit is contained in:
Dan Hermann 2019-04-01 11:39:43 -05:00
parent 6ed7b4bc5c
commit 3ce3b96e30

View file

@ -115,7 +115,7 @@ module LogStashCompilerLSCLGrammar; module LogStash; module Compiler; module LSC
elsif existing.kind_of?(::Array)
hash[k] = existing.push(*v)
else
hash[k] = existing + v
hash[k] = [existing, v] unless v == existing
end
hash
end