1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

All directories.create on us-east-1

This commit is contained in:
Edward Muller 2012-04-02 18:15:34 -07:00
parent b85497507b
commit df90ed406f

View file

@ -107,7 +107,10 @@ module Fog
if @acl
options['x-amz-acl'] = @acl
end
options['LocationConstraint'] = @location || self.connection.region
lc = @location || self.connection.region
if lc != 'us-east-1' # us-east-1 is not valid: See http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketPUT.html
options['LocationConstraint'] = lc
end
connection.put_bucket(key, options)
true
end