Skip to content

Commit

Permalink
Fix manager part of #263
Browse files Browse the repository at this point in the history
  • Loading branch information
mocchira committed Oct 29, 2014
1 parent 0bdd46d commit b2ea6e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/leo_manager_api.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1927,7 +1927,9 @@ add_bucket(AccessKey, Bucket, CannedACL) ->

case leo_s3_bucket:head(AccessKeyBin, BucketBin) of
ok ->
{error, ?ERROR_COULD_NOT_UPDATE_BUCKET};
{error, already_yours};
{error, forbidden} ->
{error, already_exists};
not_found ->
add_bucket_1(AccessKeyBin, BucketBin, CannedACL);
{error, _} ->
Expand Down

0 comments on commit b2ea6e2

Please sign in to comment.