Skip to content
Browse files

All directories.create on us-east-1

  • Loading branch information...
1 parent b854975 commit df90ed406f18cdc3341c88e9e3f4bde171c3065f @freeformz freeformz committed Apr 2, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/fog/aws/models/storage/directory.rb
View
5 lib/fog/aws/models/storage/directory.rb
@@ -107,7 +107,10 @@ def save
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

0 comments on commit df90ed4

Please sign in to comment.
Something went wrong with that request. Please try again.