Fixed node set usage
This commit is contained in:
parent
c532c0bcd0
commit
4124d67a2f
2 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue