From 2172e49e8359a62182f58d94d2a9c465a85d9a95 Mon Sep 17 00:00:00 2001 From: mbasnight Date: 2012年2月24日 20:04:39 -0600 Subject: [PATCH] Fixes bug lp#940734 - Adding manager import so AuthMiddleware works Change-Id: Ia4653daf02c14c41bab8e62f063e7673321073f4 --- Authors | 1 + nova/api/openstack/auth.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Authors b/Authors index d46fe1c00747..6fe9a8361223 100644 --- a/Authors +++ b/Authors @@ -118,6 +118,7 @@ Maru Newby Masanori Itoh Matt Dietz Matthew Hooker +Michael Basnight Michael Gundlach Michael Still Mike Lundy diff --git a/nova/api/openstack/auth.py b/nova/api/openstack/auth.py index c59d2a315fd3..544b101d40c8 100644 --- a/nova/api/openstack/auth.py +++ b/nova/api/openstack/auth.py @@ -24,7 +24,7 @@ import webob.exc from nova.api.openstack import common from nova.api.openstack import wsgi -from nova import auth +from nova.auth import manager from nova import context from nova import exception from nova import flags @@ -78,7 +78,7 @@ class AuthMiddleware(base_wsgi.Middleware): if not db_driver: db_driver = FLAGS.db_driver self.db = utils.import_object(db_driver) - self.auth = auth.manager.AuthManager() + self.auth = manager.AuthManager() super(AuthMiddleware, self).__init__(application) @webob.dec.wsgify(RequestClass=wsgi.Request)

AltStyle によって変換されたページ (->オリジナル) /