mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -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
|
value = @stack.pop
|
||||||
name = @stack.pop
|
name = @stack.pop
|
||||||
#puts "parameter: #{name} => #{value}"
|
#puts "parameter: #{name} => #{value}"
|
||||||
|
if value.is_a?(Array)
|
||||||
|
@parameters[name] += value
|
||||||
|
else
|
||||||
@parameters[name] << value
|
@parameters[name] << value
|
||||||
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
action plugin {
|
action plugin {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue