]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/munin/definitions/munin_plugin.rb
Convert all notify/subscribe calls to the new style syntax
[chef.git] / cookbooks / munin / definitions / munin_plugin.rb
index beee646fa2a844b4ea4f2012d3e65dda9378b18c..4704313b7a67fbc03b3986242ff0de2b076cb228 100644 (file)
@@ -38,7 +38,7 @@ define :munin_plugin, :action => :create do
     link "/etc/munin/plugins/#{params[:name]}" do
       action params[:action]
       to target_path
-      notifies :restart, resources(:service => "munin-node")
+      notifies :restart, "service[munin-node]"
     end
   end