From 4124d67a2fa4ffd22ecd9cde5dcbd2391d16e78a Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Sat, 28 Jan 2017 11:25:33 -0500 Subject: [PATCH] Fixed node set usage --- metadata.rb | 2 +- recipes/server.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/metadata.rb b/metadata.rb index acdc301..f757b58 100644 --- a/metadata.rb +++ b/metadata.rb @@ -4,7 +4,7 @@ maintainer_email "psi-jack@linux-help.org" license "GPLv2" description "Installs/Configures ossec" long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) -version "1.2.2" +version "1.2.3" issues_url "http://git.linux-help.org/Linux-Help/ossec-ng/issues" source_url "http://git.linux-help.org/Linux-Help/ossec-ng" diff --git a/recipes/server.rb b/recipes/server.rb index 9bcb783..93e5845 100644 --- a/recipes/server.rb +++ b/recipes/server.rb @@ -132,7 +132,7 @@ else end if ossec_agent_should_be_removed?(agent_id) Chef::Log.info("OSSEC: Removing old agent '#{agent_id}' - '#{params[:name]}'") - node["ossec"]["agents"].delete(agent_id) + node.normal["ossec"]["agents"].delete(agent_id) else Chef::Log.info("OSSEC: agent '#{agent_id}' - '#{params[:name]}' is candidate for removal") node.normal["ossec"]["agents"][agent_id]["status"] = 'candidate_for_removal'