Rename deprecated context parameter
According to https://review.openstack.org/#/c/498305/ The 'user' and 'tenant' parameter is deprecated. However, we are still using it: https://github.com/openstack/zun/blob/master/zun/common/context.py#L44 Let's follow oslo_context to rename 'user' to 'user_id' and 'tenant' to 'project_id'. Change-Id: I2b041b27e275dd753d38a0f4ca0b191bfbe91269 Closes-Bug: #1747822
This commit is contained in:
parent
51df54a2a7
commit
9cf43914a9
@ -41,8 +41,8 @@ class RequestContext(context.RequestContext):
|
||||
|
||||
"""
|
||||
super(RequestContext, self).__init__(auth_token=auth_token,
|
||||
user=user_name,
|
||||
tenant=project_name,
|
||||
user_id=user_name,
|
||||
project_id=project_name,
|
||||
is_admin=is_admin,
|
||||
read_only=read_only,
|
||||
show_deleted=show_deleted,
|
||||
|
Loading…
x
Reference in New Issue
Block a user