summaryrefslogtreecommitdiff
path: root/lib/chef/provider/ohai.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/provider/ohai.rb')
-rw-r--r--lib/chef/provider/ohai.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/ohai.rb b/lib/chef/provider/ohai.rb
index 0b65a1d28a..9cd67b764c 100644
--- a/lib/chef/provider/ohai.rb
+++ b/lib/chef/provider/ohai.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require "ohai"
+require "ohai" unless defined?(Ohai::System)
class Chef
class Provider