Permalink
Browse files

FC017: LWRP does not notify when updated

  • Loading branch information...
1 parent 925922e commit c66db22e6e2d8f693e47f344601f6d8359cb7024 @phlipper committed Dec 27, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 providers/monitrc.rb
View
@@ -8,10 +8,15 @@
notifies :restart, "service[monit]", :immediately
action :create
end
+
+ # My state has changed so I'd better notify observers
+ new_resource.updated_by_last_action(true)
end
action :delete do
execute "delete monitrc" do
command "rm -f #{node["monit"]["includes_dir"]}/#{new_resource.name}.monitrc"
end
+
+ new_resource.updated_by_last_action(true)
end

0 comments on commit c66db22

Please sign in to comment.