lib/berkshelf/ssl_policies.rb in berkshelf-6.0.1 vs lib/berkshelf/ssl_policies.rb in berkshelf-6.1.0
- old
+ new
@@ -20,10 +20,10 @@
rescue OpenSSL::X509::StoreError => e
raise e unless e.message == "cert already in hash table"
end
def trusted_certs_dir
- config_dir = Berkshelf.config.chef.trusted_certs_dir.to_s.tr('\\', '/')
+ config_dir = Berkshelf.config.chef.trusted_certs_dir.to_s.tr('\\', "/")
if config_dir.empty? || !::File.exist?(config_dir)
File.join(ENV["HOME"], ".chef", "trusted_certs")
else
config_dir
end