From 5d1de8885db72374490dc730fcbdebfab0da8da9 Mon Sep 17 00:00:00 2001 From: Miguel Negron Date: Fri, 13 Oct 2023 23:29:52 +0100 Subject: [PATCH] Change node.set by node.defaultush --- resources/providers/config.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/providers/config.rb b/resources/providers/config.rb index 680334e..4ba496d 100644 --- a/resources/providers/config.rb +++ b/resources/providers/config.rb @@ -178,7 +178,7 @@ action :nothing end.run_action(:run) - node.set["nginx"]["registered"] = true + node.default["nginx"]["registered"] = true Chef::Log.info("Nginx service has been registered to consul") end rescue => e @@ -195,7 +195,7 @@ action :nothing end.run_action(:run) - node.set["nginx"]["registered"] = false + node.default["nginx"]["registered"] = false Chef::Log.info("Nginx service has been deregistered from consul") end rescue => e