summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-03-21 13:54:14 -0700
committerTim Smith <tsmith@chef.io>2018-03-21 13:54:14 -0700
commitf8c56d6b759ce7944a3392bcd4d01eca2cd55d1e (patch)
tree4e30dbe21107df5a8a65b28050a9b16c2a792987
parent68ea89b6e7d8e67de61a2aa5990c8aa232c3b1fe (diff)
downloadchef-f8c56d6b759ce7944a3392bcd4d01eca2cd55d1e.tar.gz
Fixes from review
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/sysctl.rb3
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