Merge "Use TENANT_ID instead of TENANT for project_id"

This commit is contained in:
Jenkins 2011-11-07 16:43:34 +00:00 committed by Gerrit Code Review
commit 227f569be4

View File

@ -41,7 +41,7 @@ class NovaKeystoneContext(wsgi.Middleware):
return webob.exc.HTTPUnauthorized()
# get the roles
roles = [r.strip() for r in req.headers.get('X_ROLE', '').split(',')]
project_id = req.headers['X_TENANT']
project_id = req.headers['X_TENANT_ID']
# Get the auth token
auth_token = req.headers.get('X_AUTH_TOKEN',
req.headers.get('X_STORAGE_TOKEN'))