mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
- permit decimal values in :number validation
This commit is contained in:
parent
2f916d2958
commit
40ada1369e
1 changed files with 1 additions and 1 deletions
|
@ -350,7 +350,7 @@ module LogStash::Config::Mixin
|
|||
if value.size > 1 # only one value wanted
|
||||
return false, "Expected number, got #{value.inspect}"
|
||||
end
|
||||
if value.first.to_s.to_i.to_s != value.first.to_s
|
||||
if value.first.to_s.to_f.to_s != value.first.to_s
|
||||
return false, "Expected number, got #{value.first.inspect}"
|
||||
end
|
||||
result = value.first.to_i
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue