Append elements properly

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
Kenji Okimoto 2018-09-12 16:09:57 +09:00
parent d1226e3d34
commit a009222a2f

View File

@ -70,9 +70,10 @@ class Fluentd
}
end
end
elements = section_params.map do |index, _section_params|
_elements = section_params.map do |index, _section_params|
section_class.new(_section_params).to_config
end.compact
elements.concat(_elements)
end
params = params.to_h
if plugin_type == "filter" && plugin_name == "record_transformer"