Set types

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
Kenji Okimoto 2018-07-10 15:18:32 +09:00
parent dda93e98cd
commit 2aae26f261
No known key found for this signature in database
GPG Key ID: F9E3E329A5C5E4A1

View File

@ -26,8 +26,10 @@ class Fluentd
end
end
attribute(:type, :string)
self._types[:type] = :string
self._dumped_config.values.map(&:keys).flatten.uniq.each do |name|
attribute(name, :object)
self._types[name] = :object
end
end
end