From 8c213f354678bd49f750a795b4b5bee82369d515 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 30 Jul 2020 21:21:56 +0100 Subject: [PATCH] Allow connection_limit to be an integer --- cookbooks/networking/resources/firewall_rule.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbooks/networking/resources/firewall_rule.rb b/cookbooks/networking/resources/firewall_rule.rb index 348272af7..7cac9f86e 100644 --- a/cookbooks/networking/resources/firewall_rule.rb +++ b/cookbooks/networking/resources/firewall_rule.rb @@ -30,7 +30,7 @@ property :proto, :kind_of => String, :required => true property :dest_ports, :kind_of => [String, Integer], :default => "-" property :source_ports, :kind_of => [String, Integer], :default => "-" property :rate_limit, :kind_of => String, :default => "-" -property :connection_limit, :kind_of => String, :default => "-" +property :connection_limit, :kind_of => [String, Integer], :default => "-" property :helper, :kind_of => String, :default => "-" action :accept do @@ -55,7 +55,7 @@ action_class do :dest_ports => new_resource.dest_ports.to_s, :source_ports => new_resource.source_ports.to_s, :rate_limit => new_resource.rate_limit, - :connection_limit => new_resource.connection_limit, + :connection_limit => new_resource.connection_limit.to_s, :helper => new_resource.helper } -- 2.39.5