Ensure swift_store_admin_tenants ACLs are set

When using the V1 api ensure that admin tenant ACLs are set
correctly on the relevant swift container.

Fixes bug 1109089.

Change-Id: I275e8aa7d2f02859c0d9ddbf373a0ae51e81e53d
This commit is contained in:
Stuart McLaren 2013-01-29 16:46:46 +00:00
parent 1c01cf1c43
commit 1b54093410

View File

@ -76,9 +76,9 @@ class BaseController(object):
write_tenants.append(member['member_id'])
else:
read_tenants.append(member['member_id'])
store.set_acls(req.context, location_uri, public=public,
read_tenants=read_tenants,
write_tenants=write_tenants)
store.set_acls(req.context, location_uri, public=public,
read_tenants=read_tenants,
write_tenants=write_tenants)
except exception.UnknownScheme:
msg = _("Store for image_id not found: %s") % image_id
raise webob.exc.HTTPBadRequest(explanation=msg,