lib/ohai/plugins/shard.rb in ohai-16.4.12 vs lib/ohai/plugins/shard.rb in ohai-16.5.0

- old
+ new

@@ -50,10 +50,10 @@ end def digest_algorithm case Ohai.config[:plugin][:shard_seed][:digest_algorithm] || default_digest_algorithm when "md5" - require "digest/md5" + require "digest/md5" unless defined?(Digest::MD5) Digest::MD5 when "sha256" require "openssl/digest" OpenSSL::Digest::SHA256 end