]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/snmpd/recipes/default.rb
Fix duplicate resource warning
[chef.git] / cookbooks / snmpd / recipes / default.rb
index c6746678563c2cd01588d9b4065c21438fa483fa..ef6094b01a053299d2c83c3577b90babf017bbb3 100644 (file)
@@ -34,7 +34,7 @@ template "/etc/snmp/snmpd.conf" do
   group "root"
   mode 0600
   variables :communities => communities
-  notifies :restart, resources(:service => "snmpd")
+  notifies :restart, "service[snmpd]"
 end
 
 node[:snmpd][:clients].each do |address|