summaryrefslogtreecommitdiff
path: root/lib/chef/provider.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@opscode.com>2013-04-04 15:10:39 -0700
committerLamont Granquist <lamont@opscode.com>2013-04-04 15:10:39 -0700
commit6b373de7fe38b934ee53c6e8116cec5e96fe0a59 (patch)
treeec480a70b269f381d2a607b0817ffb070bc0618b /lib/chef/provider.rb
parent8c2f2011b6c334f4c5483bea3769383a63a018f4 (diff)
downloadchef-6b373de7fe38b934ee53c6e8116cec5e96fe0a59.tar.gz
expand and fix selinux functionality
Diffstat (limited to 'lib/chef/provider.rb')
-rw-r--r--lib/chef/provider.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/chef/provider.rb b/lib/chef/provider.rb
index 302a9fb106..2d1c28ab1a 100644
--- a/lib/chef/provider.rb
+++ b/lib/chef/provider.rb
@@ -128,8 +128,16 @@ class Chef
requirements.run(@action)
end
+ def resource_updated?
+ !converge_actions.empty? || @new_resource.updated_by_last_action?
+ end
+
+ def resource_up_to_date?
+ !resource_updated?
+ end
+
def set_updated_status
- if converge_actions.empty? && !@new_resource.updated_by_last_action?
+ if resource_up_to_date?
events.resource_up_to_date(@new_resource, @action)
else
events.resource_updated(@new_resource, @action)