From 5efff537f22db67df70a81b799adaf748cbfc2d5 Mon Sep 17 00:00:00 2001 From: Miguel Negron Date: Tue, 9 Jul 2024 12:00:43 +0100 Subject: [PATCH 1/2] fix lint --- resources/metadata.rb | 2 +- resources/recipes/default.rb | 2 +- resources/resources/config.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/metadata.rb b/resources/metadata.rb index 9d2cd34..86a0d77 100644 --- a/resources/metadata.rb +++ b/resources/metadata.rb @@ -3,4 +3,4 @@ maintainer_email 'git@redborder.com' license 'AGPL-3.0' description 'Installs/Configures cookbook-mem2incident' -version '0.0.1' \ No newline at end of file +version '0.0.1' diff --git a/resources/recipes/default.rb b/resources/recipes/default.rb index 917ff65..902cf4b 100644 --- a/resources/recipes/default.rb +++ b/resources/recipes/default.rb @@ -5,4 +5,4 @@ mem2incident_config 'config' do action :add -end \ No newline at end of file +end diff --git a/resources/resources/config.rb b/resources/resources/config.rb index da59d9d..b212bd7 100644 --- a/resources/resources/config.rb +++ b/resources/resources/config.rb @@ -12,4 +12,4 @@ attribute :api_endpoint, kind_of: String, default: 'https://webui.service/api/v1/incidents' attribute :insecure_skip_verify, kind_of: Boolean, default: true attribute :loop_interval, kind_of: Integer, default: 60 -attribute :auth_token, kind_of: String, default: 'your_auth_token_here' \ No newline at end of file +attribute :auth_token, kind_of: String, default: 'your_auth_token_here' From ae3c4d3b18b1428dfc7f3504430b41e4441f1c7e Mon Sep 17 00:00:00 2001 From: Miguel Negron Date: Tue, 9 Jul 2024 14:25:42 +0100 Subject: [PATCH 2/2] Fix kind of insecure skip verify resource --- resources/resources/config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/resources/config.rb b/resources/resources/config.rb index b212bd7..b24279a 100644 --- a/resources/resources/config.rb +++ b/resources/resources/config.rb @@ -10,6 +10,6 @@ # redborder-mem2incident config.yml attribute :memcached_servers, kind_of: Array, default: ['localhost:11211'] attribute :api_endpoint, kind_of: String, default: 'https://webui.service/api/v1/incidents' -attribute :insecure_skip_verify, kind_of: Boolean, default: true +attribute :insecure_skip_verify, kind_of: [TrueClass, FalseClass], default: true attribute :loop_interval, kind_of: Integer, default: 60 attribute :auth_token, kind_of: String, default: 'your_auth_token_here'