Dump @type attribute of owned plugins

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
Kenji Okimoto 2018-06-15 16:32:36 +09:00
parent 215da19bda
commit f1d32695a4
No known key found for this signature in database
GPG Key ID: F9E3E329A5C5E4A1

View File

@ -44,6 +44,9 @@ class Fluentd
end
elements = []
sections.to_h.each do |key, section_params|
if %w(parse format buffer storage).include?(key)
section_params["0"] = { "@type" => self.attributes["#{key}_type"] }.merge(section_params["0"])
end
next if section_params.blank?
section_params.each do |index, _section_params|
sub_attrs, sub_elements = parse_attributes(_section_params)