diff options
author | nimisha <nimisha.sharad@clogeny.com> | 2016-09-13 15:03:54 +0530 |
---|---|---|
committer | nimisha <nimisha.sharad@clogeny.com> | 2016-09-16 14:02:52 +0530 |
commit | 070adc258aa95bc8ad060c3f36d40a97a30786e7 (patch) | |
tree | 9b5c7570ea65faae961ac42512378238d8f7fe27 | |
parent | 98a41594e1e2fba8b6061fe794524a64998b243e (diff) | |
download | chef-070adc258aa95bc8ad060c3f36d40a97a30786e7.tar.gz |
Renamed supress_log_resource_count to count_log_resource_updates
-rw-r--r-- | lib/chef/provider/log.rb | 2 | ||||
-rw-r--r-- | spec/unit/provider/log_spec.rb | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/chef/provider/log.rb b/lib/chef/provider/log.rb index d2eb956562..1fa5375a89 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) unless Chef::Config[:knife][:supress_log_resource_count] + @new_resource.updated_by_last_action(true) unless Chef::Config[:count_log_resource_updates] == false end end diff --git a/spec/unit/provider/log_spec.rb b/spec/unit/provider/log_spec.rb index fa4dce3e88..ce7b1af55a 100644 --- a/spec/unit/provider/log_spec.rb +++ b/spec/unit/provider/log_spec.rb @@ -73,15 +73,15 @@ describe Chef::Provider::Log::ChefLog do provider.run_action(:write) end - context "when supress_log_resource_count is passed in knife.rb" do - it "updates the resource count if supress_log_resource_count=false" do - Chef::Config[:knife][:supress_log_resource_count] = false + context "when count_log_resource_updates is passed in knife.rb" do + it "updates the resource count if count_log_resource_updates=true" do + Chef::Config[:count_log_resource_updates] = true expect(new_resource).to receive(:updated_by_last_action) provider.run_action(:write) end - it "doesn't update the resource count if supress_log_resource_count=true" do - Chef::Config[:knife][:supress_log_resource_count] = true + it "doesn't update the resource count if count_log_resource_updates=false" do + Chef::Config[:count_log_resource_updates] = false expect(new_resource).not_to receive(:updated_by_last_action) provider.run_action(:write) end |