Handle duplicate config entries

Fixes #10619
This commit is contained in:
Dan Hermann 2019-04-01 11:39:43 -05:00
parent 0fb0d75b4d
commit 4a27b4c264

View file

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