mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
- += if an array, otherwise << shift in
This commit is contained in:
parent
33d6619c5e
commit
2a56742cbb
1 changed files with 5 additions and 1 deletions
|
@ -60,7 +60,11 @@ require "logstash/namespace"
|
|||
value = @stack.pop
|
||||
name = @stack.pop
|
||||
#puts "parameter: #{name} => #{value}"
|
||||
@parameters[name] << value
|
||||
if value.is_a?(Array)
|
||||
@parameters[name] += value
|
||||
else
|
||||
@parameters[name] << value
|
||||
end
|
||||
}
|
||||
|
||||
action plugin {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue