]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/chef/definitions/ohai_plugin.rb
Convert all notify/subscribe calls to the new style syntax
[chef.git] / cookbooks / chef / definitions / ohai_plugin.rb
index 06e9d300d6724b1faa4354bf262d8c5704b2037b..50be323fea34930f557d6e604b66f89ba80227a1 100644 (file)
@@ -31,7 +31,7 @@ define :ohai_plugin, :action => [ :create, :delete ] do
       owner "root"
       group "root"
       mode 0644
-      notifies :reload, resources(:ohai => plugin_name)
+      notifies :reload, "ohai[#{plugin_name}]"
     end
   elsif plugin_action.include?(:delete)
     template "/etc/chef/ohai/#{plugin_name}.rb" do