summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2019-09-04 14:47:06 -0700
committerGitHub <noreply@github.com>2019-09-04 14:47:06 -0700
commit49137a9ffeb0650f8cf83ae885a1460e0d814f52 (patch)
tree29cf1a276f8fe89c7d1d4198a5f80949c1e6c2b6
parentd2ef7393f9b86ce71564e282e7aee8b5d1fd7665 (diff)
parent1cb1a70ff60f22259f73d5ba3fdf4bf50911772d (diff)
downloadohai-49137a9ffeb0650f8cf83ae885a1460e0d814f52.tar.gz
Merge pull request #1402 from chef/sysctl_optional
Make the new sysctl plugin optional
-rw-r--r--lib/ohai/plugins/linux/sysctl.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ohai/plugins/linux/sysctl.rb b/lib/ohai/plugins/linux/sysctl.rb
index 06b2d241..2d621183 100644
--- a/lib/ohai/plugins/linux/sysctl.rb
+++ b/lib/ohai/plugins/linux/sysctl.rb
@@ -18,6 +18,7 @@
Ohai.plugin(:Sysctl) do
provides "sysctl"
+ optional true
collect_data(:linux) do
sysctl_path = which("sysctl")