lib/berkshelf/ssl_policies.rb in berkshelf-8.0.7 vs lib/berkshelf/ssl_policies.rb in berkshelf-8.0.9

- old
+ new

@@ -14,10 +14,10 @@ end def add_trusted_cert(cert) @store.add_cert(cert) rescue OpenSSL::X509::StoreError => e - raise e unless e.message == "cert already in hash table" + raise e unless e.message.match(/cert already in hash table/) end def trusted_certs_dir config_dir = Berkshelf.config.chef.trusted_certs_dir.to_s.tr("\\", "/") if config_dir.empty? || !::File.exist?(config_dir)