Skip to content

Commit

Permalink
only search for users with icinga_email attribute set
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelcontento committed Nov 21, 2012
1 parent 88ad3bc commit 8980b19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
include_recipe "icinga::plugins_package"
include_recipe "icinga::core_source"

sysadmins = search(:users, "groups:#{node['icinga']['sysadmin']}")
sysadmins = search(:users, "groups:#{node['icinga']['sysadmin']} AND icinga_email:*")
nodes = search(:node, "hostname:[* TO *] AND chef_environment:#{node.chef_environment}")

if nodes.empty?
Expand Down

0 comments on commit 8980b19

Please sign in to comment.