summaryrefslogtreecommitdiff
path: root/lib/chef/provider/log.rb
diff options
context:
space:
mode:
authornimisha <nimisha.sharad@clogeny.com>2016-09-12 18:37:00 +0530
committernimisha <nimisha.sharad@clogeny.com>2016-09-16 14:02:51 +0530
commit98a41594e1e2fba8b6061fe794524a64998b243e (patch)
tree9305bb76f7ee882d64c7c40ca2d3ac98dfa38a22 /lib/chef/provider/log.rb
parentf39bb63e7d09e590ef5036091beb37885d1cc391 (diff)
downloadchef-98a41594e1e2fba8b6061fe794524a64998b243e.tar.gz
Removed update_resource_count attribute and added supress_log_resource_count chef config
Diffstat (limited to 'lib/chef/provider/log.rb')
-rw-r--r--lib/chef/provider/log.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/log.rb b/lib/chef/provider/log.rb
index 2045918e27..d2eb956562 100644
--- a/lib/chef/provider/log.rb
+++ b/lib/chef/provider/log.rb
@@ -45,7 +45,7 @@ class Chef
# true:: Always return true
def action_write
Chef::Log.send(@new_resource.level, @new_resource.message)
- @new_resource.updated_by_last_action(true) if @new_resource.update_resource_count
+ @new_resource.updated_by_last_action(true) unless Chef::Config[:knife][:supress_log_resource_count]
end
end