Fix set ACL fails to existing bucket

ACL API should be called against to an existing bucket.
However current swift3 returns 409 Bucket Already Exists
when the target bucket has already existed.

We should make it to return 200 OK when we can put the ACL
successfully.

Change-Id: I1de6379cbe1fd3eeb7bbcb52a3cf72c5821dfede
This commit is contained in:
Kota Tsuyuzaki
2014-10-16 21:37:34 -07:00
parent f37ecbb418
commit f80339c110
2 changed files with 5 additions and 2 deletions

View File

@@ -187,7 +187,7 @@ class AclController(Controller):
for header, acl in translated_acl:
req.headers[header] = acl
resp = req.get_response(self.app)
resp = req.get_response(self.app, 'POST')
resp.status = HTTP_OK
resp.headers.update({'Location': req.container_name})