From 73c7982c9c2085cb6b24ddcf937b1193e98d5c72 Mon Sep 17 00:00:00 2001 From: isethi Date: Thu, 27 Dec 2012 17:41:21 +0000 Subject: [PATCH] Use imported exception for update_store_acls update_store_acls uses unimported exception HTTPBadRequest. This patch changes it to use in the right scope. Fixes bug 1080991 Change-Id: I82b6488a9b67a27f46f492d0d08a41cd4b7f40c3 --- 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 7130e0e7f3..2234303459 100644 --- a/glance/api/v1/controller.py +++ b/glance/api/v1/controller.py @@ -81,6 +81,6 @@ class BaseController(object): write_tenants=write_tenants) except exception.UnknownScheme: msg = _("Store for image_id not found: %s") % image_id - raise HTTPBadRequest(explanation=msg, - request=req, - content_type='text/plain') + raise webob.exc.HTTPBadRequest(explanation=msg, + request=req, + content_type='text/plain')