Skip to content

Commit

Permalink
Return false if an exception occurs while checking bucket's access co…
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeadin committed Aug 8, 2019
1 parent c976484 commit b85838a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions s3_file/libraries/s3_file.rb
Expand Up @@ -221,6 +221,7 @@ def self.is_public_s3_endpoint?(url)
resp.code == 200
rescue => e
Chef::Log.info("Assuming S3 endpoint is not public (#{e.message})")
return false
end

def self.client
Expand Down

0 comments on commit b85838a

Please sign in to comment.