Fixed node set usage

This commit is contained in:
Eric Renfro 2017-01-28 11:25:33 -05:00
parent c532c0bcd0
commit 4124d67a2f
No known key found for this signature in database
GPG Key ID: 9A949323CBE78F97
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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'