diff options
author | Tim Smith <tsmith@chef.io> | 2018-07-09 21:10:10 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-07-09 21:10:10 -0700 |
commit | 97c16593dc6eb4ce0a14eecadf4fdbf90d4d0dbd (patch) | |
tree | 5913450e04842d915623424f27271a6cbcf31fe7 /lib/chef/resource/sysctl.rb | |
parent | 5b2fd637fde5c3b893db3b76a2e1ce4f2deed80a (diff) | |
download | chef-97c16593dc6eb4ce0a14eecadf4fdbf90d4d0dbd.tar.gz |
Add missing action descriptions
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/resource/sysctl.rb')
-rw-r--r-- | lib/chef/resource/sysctl.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/chef/resource/sysctl.rb b/lib/chef/resource/sysctl.rb index 496eb05cb8..1b08ccbd0e 100644 --- a/lib/chef/resource/sysctl.rb +++ b/lib/chef/resource/sysctl.rb @@ -72,6 +72,8 @@ class Chef end action :apply do + description "Apply a systctl value." + converge_if_changed do # set it temporarily set_sysctl_param(new_resource.key, new_resource.value) @@ -91,6 +93,8 @@ class Chef end action :remove do + description "Remove a sysctl value." + # only converge the resource if the file actually exists to delete if ::File.exist?("#{new_resource.conf_dir}/99-chef-#{new_resource.key}.conf") converge_by "removing systctl config at #{new_resource.conf_dir}/99-chef-#{new_resource.key}.conf" do |