From 1b5409341099c869607d02e874d0476b4c959c42 Mon Sep 17 00:00:00 2001 From: Stuart McLaren Date: Tue, 29 Jan 2013 16:46:46 +0000 Subject: [PATCH] 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 --- glance/api/v1/controller.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/glance/api/v1/controller.py b/glance/api/v1/controller.py index 2234303459..8b74e5db9d 100644 --- a/glance/api/v1/controller.py +++ b/glance/api/v1/controller.py @@ -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,