Fixes bug lp#940734 - Adding manager import so AuthMiddleware works

Change-Id: Ia4653daf02c14c41bab8e62f063e7673321073f4
This commit is contained in:
mbasnight
2012-02-24 20:04:39 -06:00
parent 48c5a7f621
commit 2172e49e83
2 changed files with 3 additions and 2 deletions

View File

@@ -118,6 +118,7 @@ Maru Newby <mnewby@internap.com>
Masanori Itoh <itoumsn@nttdata.co.jp>
Matt Dietz <matt.dietz@rackspace.com>
Matthew Hooker <matt@cloudscaling.com>
Michael Basnight <mbasnigh@rackspace.com>
Michael Gundlach <michael.gundlach@rackspace.com>
Michael Still <mikal@stillhq.com>
Mike Lundy <mike@pistoncloud.com>

View File

@@ -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)