diff options
author | Lamont Granquist <454857+lamont-granquist@users.noreply.github.com> | 2021-12-09 19:56:12 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-09 19:56:12 -0800 |
commit | 1f1f2fda5dbe703faf49a3fe37e2a35884f57e77 (patch) | |
tree | 779c9c4f846f433cacf2680e4616f83253012088 | |
parent | b16a591af0390d03f5450f67034df3c2aa9d1376 (diff) | |
parent | 2c9ae5e9b8216f6f4378de2fb97541e1ddfa8d17 (diff) | |
download | ohai-1f1f2fda5dbe703faf49a3fe37e2a35884f57e77.tar.gz |
Merge pull request #1721 from chef/dont_fail_chef
-rw-r--r-- | lib/ohai/plugins/chef.rb | 2 |
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 |