lib/fog/storage/requests/aws/get_bucket_location.rb in fog-0.8.1 vs lib/fog/storage/requests/aws/get_bucket_location.rb in fog-0.8.2
- old
+ new
@@ -34,10 +34,10 @@
class Mock # :nodoc:all
def get_bucket_location(bucket_name)
response = Excon::Response.new
- if bucket = @data[:buckets][bucket_name]
+ if bucket = self.data[:buckets][bucket_name]
response.status = 200
response.body = {'LocationConstraint' => bucket['LocationConstraint'] }
else
response.status = 404
raise(Excon::Errors.status_error({:expects => 200}, response))