Skip to content

Commit 3e2ccf5

Browse files
committed
Drop warning if region is not us-east-1 in mock
Previously if `Fog.mock!` were used with some other region and the bucket already existed, a warning message, `Your region <region> does not match the default region 'us-east-1'". We were seeing a lot of these warnings in our test suite. As far as I can tell, there's no reason why some other region can't be used, so drop this.
1 parent 0e769ee commit 3e2ccf5

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/fog/aws/requests/storage/put_bucket.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,6 @@ def put_bucket(bucket_name, options = {})
6161
end
6262
if !self.data[:buckets][bucket_name]
6363
self.data[:buckets][bucket_name] = bucket
64-
elsif self.region != 'us-east-1'
65-
response.status = 409
66-
Fog::Logger.warning "Your region '#{self.region}' does not match the default region 'us-east-1'"
67-
raise(Excon::Errors.status_error({:expects => 201}, response))
6864
end
6965
response
7066
end

0 commit comments

Comments
 (0)