Add 'roles' parameter to the Context object.
Kingbird context object does not contain parameter 'roles'. parameter 'roles' is essential as when kingbird communicates with other openstack services through auth token. Change-Id: I1f34d54f72e115bb40a146bb733672c649602ef4
This commit is contained in:
parent
219c034f56
commit
3fc29899cb
|
@ -26,6 +26,7 @@ def extract_context_from_environ():
|
|||
'user_name': 'HTTP_X_USER_NAME',
|
||||
'tenant_name': 'HTTP_X_PROJECT_NAME',
|
||||
'domain': 'HTTP_X_DOMAIN_ID',
|
||||
'roles': 'HTTP_X_ROLE',
|
||||
'user_domain': 'HTTP_X_USER_DOMAIN_ID',
|
||||
'project_domain': 'HTTP_X_PROJECT_DOMAIN_ID',
|
||||
'request_id': 'openstack.request_id'}
|
||||
|
|
|
@ -43,7 +43,7 @@ class RequestContext(base_context.RequestContext):
|
|||
super(RequestContext, self).__init__(
|
||||
auth_token=auth_token, user=user, tenant=project,
|
||||
domain=domain, user_domain=user_domain,
|
||||
project_domain=project_domain,
|
||||
project_domain=project_domain, roles=roles,
|
||||
read_only=read_only, show_deleted=show_deleted,
|
||||
request_id=request_id)
|
||||
|
||||
|
|
Loading…
Reference in New Issue