summaryrefslogtreecommitdiff
path: root/lib/ohai/plugins/windows/fips.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ohai/plugins/windows/fips.rb')
-rw-r--r--lib/ohai/plugins/windows/fips.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/plugins/windows/fips.rb b/lib/ohai/plugins/windows/fips.rb
index 085c7f2c..27d36f2d 100644
--- a/lib/ohai/plugins/windows/fips.rb
+++ b/lib/ohai/plugins/windows/fips.rb
@@ -28,7 +28,7 @@ Ohai.plugin(:Fips) do
collect_data(:windows) do
fips Mash.new
- require "openssl"
+ require "openssl" unless defined?(OpenSSL)
if defined?(OpenSSL.fips_mode) && OpenSSL.fips_mode && !$FIPS_TEST_MODE
fips["kernel"] = { "enabled" => true }
else