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

put_bucket should be idempotent

This commit is contained in:
Wesley Beary 2009-09-08 11:54:38 -07:00
parent beed92d667
commit 5025587cca

View file

@ -58,7 +58,9 @@ else
else
bucket['LocationConstraint'] = ''
end
Fog::AWS::S3.data[:buckets][bucket_name] = bucket
unless Fog::AWS::S3.data[:buckets][bucket_name]
Fog::AWS::S3.data[:buckets][bucket_name] = bucket
end
response
end