From 9cf43914a949c4e35753cc48571a3c7c53cc7343 Mon Sep 17 00:00:00 2001 From: deepak_mourya Date: Wed, 7 Feb 2018 11:04:44 +0530 Subject: [PATCH] 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 --- zun/common/context.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zun/common/context.py b/zun/common/context.py index 8241dbd3e..beda84424 100644 --- a/zun/common/context.py +++ b/zun/common/context.py @@ -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,