diff options
author | Tim Smith <tsmith@chef.io> | 2018-04-27 12:58:32 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-04-27 12:58:32 -0700 |
commit | 5c4acd1a0983d30599b828b495b6fe2610c102b3 (patch) | |
tree | 0ad7fa609a239d0f167aaedd6590f306280a10b8 | |
parent | d677bf1741aa69004efc0e97c074bb1a4a7eb53d (diff) | |
download | chef-5c4acd1a0983d30599b828b495b6fe2610c102b3.tar.gz |
Use more friendly resource names when reloading values
What we're doing here is loading values. Just state that.
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/chef/resource/sysctl.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/chef/resource/sysctl.rb b/lib/chef/resource/sysctl.rb index faa9d59e95..02d13b0ad7 100644 --- a/lib/chef/resource/sysctl.rb +++ b/lib/chef/resource/sysctl.rb @@ -82,7 +82,7 @@ class Chef content "#{new_resource.key} = #{new_resource.value}" end - execute "sysctl -p" do + execute "Load sysctl values" do command "sysctl #{'-e ' if new_resource.ignore_error}-p" action :run end @@ -97,7 +97,10 @@ class Chef action :delete end - execute "sysctl -p" + execute "Load sysctl values" do + command "sysctl -p" + action :run + end end end end |