mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
- use Numeric instead of Fixnum (covers Float, too)
This commit is contained in:
parent
f8948bf694
commit
5767c28da6
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ module LogStash::Config::Mixin
|
|||
# default values should be cloned if possible
|
||||
# cloning prevents
|
||||
case opts[:default]
|
||||
when FalseClass, TrueClass, NilClass, Fixnum
|
||||
when FalseClass, TrueClass, NilClass, Numeric
|
||||
params[name.to_s] = opts[:default]
|
||||
else
|
||||
params[name.to_s] = opts[:default].clone
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue