Remove parse_type like attributes from owner plugin configuration

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

View File

@ -20,7 +20,10 @@ class Fluentd
when "storage"
"storage"
end
_attributes = { "@type" => self.plugin_name }.merge(attributes)
_attributes = attributes.reject do |key, value|
%w(parse_type format_type buffer_type storage_type).include?(key.to_s)
end
_attributes = { "@type" => self.plugin_name }.merge(_attributes)
_attributes["@log_level"] = _attributes.delete("log_level")
argument = case plugin_type
when "output", "filter", "buffer"