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:
parent
beed92d667
commit
5025587cca
1 changed files with 3 additions and 1 deletions
|
@ -58,7 +58,9 @@ else
|
|||
else
|
||||
bucket['LocationConstraint'] = ''
|
||||
end
|
||||
unless Fog::AWS::S3.data[:buckets][bucket_name]
|
||||
Fog::AWS::S3.data[:buckets][bucket_name] = bucket
|
||||
end
|
||||
response
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue