summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Higgins <pete@peterhiggins.org>2020-12-16 17:41:19 -0800
committerPete Higgins <pete@peterhiggins.org>2020-12-16 17:41:19 -0800
commitf8fce947beb23b0c6e16f76c6be07931b57944b7 (patch)
treeca3fb6f36116656030f0ff962997e70e1ceeaa2d
parentc675639d5651e9a8fdaddaddc0846d77133d4f24 (diff)
downloadchef-f8fce947beb23b0c6e16f76c6be07931b57944b7.tar.gz
chefstyle
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
-rw-r--r--lib/chef/http/ssl_policies.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/http/ssl_policies.rb b/lib/chef/http/ssl_policies.rb
index 3a02dbe283..bc688f13a6 100644
--- a/lib/chef/http/ssl_policies.rb
+++ b/lib/chef/http/ssl_policies.rb
@@ -89,8 +89,8 @@ class Chef
certs.each do |cert_file|
cert = begin
OpenSSL::X509::Certificate.new(::File.binread(cert_file))
- rescue OpenSSL::X509::CertificateError => e
- raise Chef::Exceptions::ConfigurationError, "Error reading cert file '#{cert_file}', original error '#{e.class}: #{e.message}'"
+ rescue OpenSSL::X509::CertificateError => e
+ raise Chef::Exceptions::ConfigurationError, "Error reading cert file '#{cert_file}', original error '#{e.class}: #{e.message}'"
end
add_trusted_cert(cert)
end