diff options
author | Tim Smith <tsmith@chef.io> | 2018-03-21 13:54:14 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-03-21 13:54:14 -0700 |
commit | f8c56d6b759ce7944a3392bcd4d01eca2cd55d1e (patch) | |
tree | 4e30dbe21107df5a8a65b28050a9b16c2a792987 /lib/chef | |
parent | 68ea89b6e7d8e67de61a2aa5990c8aa232c3b1fe (diff) | |
download | chef-f8c56d6b759ce7944a3392bcd4d01eca2cd55d1e.tar.gz |
Fixes from review
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef')
-rw-r--r-- | lib/chef/resource/sysctl.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/chef/resource/sysctl.rb b/lib/chef/resource/sysctl.rb index a3d684ef2f..96a4287a2b 100644 --- a/lib/chef/resource/sysctl.rb +++ b/lib/chef/resource/sysctl.rb @@ -65,7 +65,7 @@ class Chef def get_sysctl_value(key) o = shell_out("sysctl -n -e #{key}") - raise "Unknown sysctl key!" if o.error! + raise "Unknown sysctl key #{key}!" if o.error! o.stdout.to_s.tr("\t", " ").strip end @@ -107,7 +107,6 @@ class Chef node.rm("sysctl", "backup", new_resource.key) execute "sysctl -p" do - command "sysctl -p" action :run end end |