From 123b1e56552e7d3044deea976de5e2fc5c7c3eef Mon Sep 17 00:00:00 2001 From: nikhil2611 Date: Wed, 27 Sep 2023 11:53:53 +0530 Subject: [PATCH] tweaked the error handler to be a regex match versus a strict text match. Signed-off-by: nikhil2611 --- lib/berkshelf/ssl_policies.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/berkshelf/ssl_policies.rb b/lib/berkshelf/ssl_policies.rb index 3a691a14d..ea7888094 100644 --- a/lib/berkshelf/ssl_policies.rb +++ b/lib/berkshelf/ssl_policies.rb @@ -16,7 +16,7 @@ def initialize 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