summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <454857+lamont-granquist@users.noreply.github.com>2021-12-09 19:56:12 -0800
committerGitHub <noreply@github.com>2021-12-09 19:56:12 -0800
commit1f1f2fda5dbe703faf49a3fe37e2a35884f57e77 (patch)
tree779c9c4f846f433cacf2680e4616f83253012088
parentb16a591af0390d03f5450f67034df3c2aa9d1376 (diff)
parent2c9ae5e9b8216f6f4378de2fb97541e1ddfa8d17 (diff)
downloadohai-1f1f2fda5dbe703faf49a3fe37e2a35884f57e77.tar.gz
Merge pull request #1721 from chef/dont_fail_chef
-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 ae027727..89e245a5 100644
--- a/lib/ohai/plugins/chef.rb
+++ b/lib/ohai/plugins/chef.rb
@@ -33,7 +33,7 @@ Ohai.plugin(:Chef) do
begin
require "chef/version"
require "chef-config/config" unless defined?(ChefConfig::Config)
- rescue Gem::LoadError
+ rescue LoadError
logger.trace("Plugin Chef: Unable to load the chef gem to determine the version")
# this catches when you've done a major version bump of ohai, but
# your chef gem is incompatible, so we can't load it in the same VM