summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCollinM <cmcneese@chef.io>2021-02-22 11:19:19 -0600
committerTim Smith <tsmith84@gmail.com>2021-04-02 09:45:08 -0700
commit0f71f5804b29321bb1a6e6e1462c0b587fc65cd3 (patch)
treee1283018c53f60a7056ce37fa61ece81d204c48c
parent91f01fae0e8c9cccdff26d026e79397a70c7b09a (diff)
downloadohai-0f71f5804b29321bb1a6e6e1462c0b587fc65cd3.tar.gz
Update lib/ohai/plugins/chef.rb
Signed-off-by: Collin McNeese <cmcneese@chef.io> Co-authored-by: Tim Smith <tsmith84@gmail.com>
-rw-r--r--lib/ohai/plugins/chef.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/plugins/chef.rb b/lib/ohai/plugins/chef.rb
index 268663d6..ae027727 100644
--- a/lib/ohai/plugins/chef.rb
+++ b/lib/ohai/plugins/chef.rb
@@ -25,7 +25,7 @@ Ohai.plugin(:Chef) do
if Chef::CHEF_ROOT.include?("hab/pkgs/chef/chef")
# Determine if client is running in zero mode which would show it is using the Effortless pattern.
# Explicitly set response to true or nil, not false
- ChefConfig::Config["chef_server_url"].include?("chefzero://") || nil
+ ChefConfig::Config["chef_server_url"].include?("chefzero://")
end
end