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:
parent
b85497507b
commit
df90ed406f
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue