summaryrefslogtreecommitdiff
path: root/chef-config/lib/chef-config/config.rb
diff options
context:
space:
mode:
authorKartik Null Cating-Subramanian <ksubramanian@chef.io>2016-04-21 13:26:30 -0400
committerKartik Null Cating-Subramanian <ksubramanian@chef.io>2016-04-25 12:04:09 -0400
commit2034305917a76d4c203e457a9ebf61d28819ccbd (patch)
treed43562f4902ab0db80b4178ffefbdff825f4d66f /chef-config/lib/chef-config/config.rb
parentd5039e38977b9da431fcb52670576561d772aa27 (diff)
downloadchef-2034305917a76d4c203e457a9ebf61d28819ccbd.tar.gz
Too much log output and unnecessary warnings! Suppress that shit.
Diffstat (limited to 'chef-config/lib/chef-config/config.rb')
-rw-r--r--chef-config/lib/chef-config/config.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/chef-config/lib/chef-config/config.rb b/chef-config/lib/chef-config/config.rb
index bea357dad6..69333aa198 100644
--- a/chef-config/lib/chef-config/config.rb
+++ b/chef-config/lib/chef-config/config.rb
@@ -960,7 +960,9 @@ module ChefConfig
require "digest"
require "digest/sha1"
require "digest/md5"
+ Digest.send(:remove_const, "SHA1") if Digest.const_defined?("SHA1")
Digest.const_set("SHA1", OpenSSL::Digest::SHA1)
+ OpenSSL::Digest.send(:remove_const, "MD5") if OpenSSL::Digest.const_defined?("MD5")
OpenSSL::Digest.const_set("MD5", Digest::MD5)
end
end