lib/chef/provider/group.rb in chef-0.9.8 vs lib/chef/provider/group.rb in chef-0.9.10.rc.0

- old
+ new

@@ -76,40 +76,40 @@ def action_create case @group_exists when false create_group Chef::Log.info("Created #{@new_resource}") - @new_resource.updated = true + @new_resource.updated_by_last_action(true) else if compare_group manage_group Chef::Log.info("Altered #{@new_resource}") - @new_resource.updated = true + @new_resource.updated_by_last_action(true) end end end def action_remove if @group_exists remove_group - @new_resource.updated = true + @new_resource.updated_by_last_action(true) Chef::Log.info("Removed #{@new_resource}") end end def action_manage if @group_exists && compare_group manage_group - @new_resource.updated = true + @new_resource.updated_by_last_action(true) Chef::Log.info("Managed #{@new_resource}") end end def action_modify if @group_exists if compare_group manage_group - @new_resource.updated = true + @new_resource.updated_by_last_action(true) Chef::Log.info("Modified #{@new_resource}") end else raise Chef::Exceptions::Group, "Cannot modify #{@new_resource} - group does not exist!" end