mirror of
https://github.com/fluent/fluentd-ui.git
synced 2026-05-06 03:16:11 +02:00
Rescue Type error in reformat_value
Ruby2.2 and 2.3 cannot dup Fixnum and some classes. Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
parent
39061fe38e
commit
aeefc82ca4
@ -162,7 +162,11 @@ class Fluentd
|
||||
else
|
||||
type
|
||||
end
|
||||
Fluent::Config::REFORMAT_VALUE.call(type_name, value.dup)
|
||||
begin
|
||||
Fluent::Config::REFORMAT_VALUE.call(type_name, value.dup)
|
||||
rescue TypeError
|
||||
Fluent::Config::REFORMAT_VALUE.call(type_name, value)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user