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
|
# Number of connections that, when exceeded, will trigger a connection GC
|
||||||
# operation
|
# operation
|
||||||
ipfs_config 'Swarm.ConnMgr.HighWater' do
|
ipfs_config 'Swarm.ConnMgr.HighWater' do
|
||||||
value '10'
|
value 10
|
||||||
end
|
end
|
||||||
|
|
||||||
# Minimum number of connections to maintain
|
# Minimum number of connections to maintain
|
||||||
ipfs_config 'Swarm.ConnMgr.LowWater' do
|
ipfs_config 'Swarm.ConnMgr.LowWater' do
|
||||||
value '1'
|
value 1
|
||||||
end
|
end
|
||||||
|
@ -2,7 +2,7 @@ require 'json'
|
|||||||
require 'mixlib/shellout'
|
require 'mixlib/shellout'
|
||||||
|
|
||||||
property :key, String, name_property: true
|
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
|
action :create do
|
||||||
include_recipe 'ipfs'
|
include_recipe 'ipfs'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user