From 4a27b4c26474a0646eb2cb95e1de3c6828359756 Mon Sep 17 00:00:00 2001 From: Dan Hermann Date: Mon, 1 Apr 2019 11:39:43 -0500 Subject: [PATCH] Handle duplicate config entries Fixes #10619 --- logstash-core/lib/logstash/compiler/lscl.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logstash-core/lib/logstash/compiler/lscl.rb b/logstash-core/lib/logstash/compiler/lscl.rb index 277c3ef27..b4cdb4d0d 100644 --- a/logstash-core/lib/logstash/compiler/lscl.rb +++ b/logstash-core/lib/logstash/compiler/lscl.rb @@ -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