lib/ohai/plugins/windows/fips.rb in ohai-15.0.35 vs lib/ohai/plugins/windows/fips.rb in ohai-15.1.3
- old
+ new
@@ -26,10 +26,10 @@
provides "fips"
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
fips["kernel"] = { "enabled" => false }
end