Skip to content

Commit

Permalink
I forgot about actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Yudin committed Feb 12, 2015
1 parent c83f688 commit eeb8c71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
# The updating of the list of checks.
ruby_block 'updating of the list of checks' do
block do
checks = run_context.resource_collection.select { |r| r.is_a?(Chef::Resource::NrpeCheck) }.map(&:command_name)
checks = run_context.resource_collection.select { |r| r.is_a?(Chef::Resource::NrpeCheck) && r.action == [:add] }.map(&:command_name)
node.set['nrpe']['checks'] = checks
end
end

0 comments on commit eeb8c71

Please sign in to comment.