Permalink
Browse files

While checking if the bucket exists, try to get the bucket, not

the location. Getting the location will return an access denied
message if AWS Identity and Access Management (IAM) is in use.
  • Loading branch information...
1 parent 042e8c7 commit e5f78153371023f189867e63109d27ba210bbb97 curtis committed with Mark Evans Nov 11, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/dragonfly/data_storage/s3data_store.rb
@@ -96,7 +96,7 @@ def storage
end
def bucket_exists?
- rescuing_socket_errors{ storage.get_bucket_location(bucket_name) }
+ rescuing_socket_errors{ storage.get_bucket(bucket_name) }
true
rescue Excon::Errors::NotFound => e
false

0 comments on commit e5f7815

Please sign in to comment.