Handle time_key without error

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
Kenji Okimoto 2018-06-12 18:09:09 +09:00
parent f194aae880
commit 72d377b51a
No known key found for this signature in database
GPG Key ID: F9E3E329A5C5E4A1

View File

@ -79,6 +79,7 @@ class Fluentd
def reformat_value(name, value) def reformat_value(name, value)
type = column_type(name) type = column_type(name)
return value if type.nil? # name == :time_key
return value if type == :enum return value if type == :enum
return value if type == :regexp return value if type == :regexp
type_name = if type.is_a?(Fluentd::Setting::Type::Time) type_name = if type.is_a?(Fluentd::Setting::Type::Time)