Fixes bug lp#940734 - Adding manager import so AuthMiddleware works
Change-Id: Ia4653daf02c14c41bab8e62f063e7673321073f4
This commit is contained in:
1
Authors
1
Authors
@@ -118,6 +118,7 @@ Maru Newby <mnewby@internap.com>
|
|||||||
Masanori Itoh <itoumsn@nttdata.co.jp>
|
Masanori Itoh <itoumsn@nttdata.co.jp>
|
||||||
Matt Dietz <matt.dietz@rackspace.com>
|
Matt Dietz <matt.dietz@rackspace.com>
|
||||||
Matthew Hooker <matt@cloudscaling.com>
|
Matthew Hooker <matt@cloudscaling.com>
|
||||||
|
Michael Basnight <mbasnigh@rackspace.com>
|
||||||
Michael Gundlach <michael.gundlach@rackspace.com>
|
Michael Gundlach <michael.gundlach@rackspace.com>
|
||||||
Michael Still <mikal@stillhq.com>
|
Michael Still <mikal@stillhq.com>
|
||||||
Mike Lundy <mike@pistoncloud.com>
|
Mike Lundy <mike@pistoncloud.com>
|
||||||
|
@@ -24,7 +24,7 @@ import webob.exc
|
|||||||
|
|
||||||
from nova.api.openstack import common
|
from nova.api.openstack import common
|
||||||
from nova.api.openstack import wsgi
|
from nova.api.openstack import wsgi
|
||||||
from nova import auth
|
from nova.auth import manager
|
||||||
from nova import context
|
from nova import context
|
||||||
from nova import exception
|
from nova import exception
|
||||||
from nova import flags
|
from nova import flags
|
||||||
@@ -78,7 +78,7 @@ class AuthMiddleware(base_wsgi.Middleware):
|
|||||||
if not db_driver:
|
if not db_driver:
|
||||||
db_driver = FLAGS.db_driver
|
db_driver = FLAGS.db_driver
|
||||||
self.db = utils.import_object(db_driver)
|
self.db = utils.import_object(db_driver)
|
||||||
self.auth = auth.manager.AuthManager()
|
self.auth = manager.AuthManager()
|
||||||
super(AuthMiddleware, self).__init__(application)
|
super(AuthMiddleware, self).__init__(application)
|
||||||
|
|
||||||
@webob.dec.wsgify(RequestClass=wsgi.Request)
|
@webob.dec.wsgify(RequestClass=wsgi.Request)
|
||||||
|
Reference in New Issue
Block a user