Fix the ipfs_config resource to handle integers too
This commit is contained in:
parent
f22b7d9b1f
commit
5aa50ecc7e
|
@ -99,10 +99,10 @@ end
|
|||
# Number of connections that, when exceeded, will trigger a connection GC
|
||||
# operation
|
||||
ipfs_config 'Swarm.ConnMgr.HighWater' do
|
||||
value '10'
|
||||
value 10
|
||||
end
|
||||
|
||||
# Minimum number of connections to maintain
|
||||
ipfs_config 'Swarm.ConnMgr.LowWater' do
|
||||
value '1'
|
||||
value 1
|
||||
end
|
||||
|
|
|
@ -2,7 +2,7 @@ require 'json'
|
|||
require 'mixlib/shellout'
|
||||
|
||||
property :key, String, name_property: true
|
||||
property :value, [String, Hash, Array, TrueClass, FalseClass], required: true
|
||||
property :value, [String, Hash, Array, TrueClass, FalseClass, Integer], required: true
|
||||
|
||||
action :create do
|
||||
include_recipe 'ipfs'
|
||||
|
|
Loading…
Reference in New Issue