summaryrefslogtreecommitdiff
path: root/trove/common/clients.py
diff options
context:
space:
mode:
authorTakashi Natsume <takanattie@gmail.com>2022-08-20 13:04:05 +0900
committerTakashi Natsume <takanattie@gmail.com>2022-10-15 12:42:46 +0000
commit8c94e21196756c0a799dfafb42cbcf4ad96109f6 (patch)
treedc495ef292b28fab380a2d86f657a10f8f344eb3 /trove/common/clients.py
parent346e1612200563cdbeadc49186fd819dc6d4f950 (diff)
downloadtrove-8c94e21196756c0a799dfafb42cbcf4ad96109f6.tar.gz
Fix deprecation warnings
Fix the following deprecation warnings. * DeprecationWarning: Using the 'user' argument is deprecated in version '2.18' and will be removed in version '3.0', please use the 'user_id' argument instead * DeprecationWarning: Property 'user' has moved to 'user_id' in version '2.6' and will be removed in version '3.0' Change-Id: I18802ae1e2318eae3c62a26459178b259c728ac4 Signed-off-by: Takashi Natsume <takanattie@gmail.com>
Diffstat (limited to 'trove/common/clients.py')
-rw-r--r--trove/common/clients.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/trove/common/clients.py b/trove/common/clients.py
index af24f15e..40a5136f 100644
--- a/trove/common/clients.py
+++ b/trove/common/clients.py
@@ -102,7 +102,7 @@ def nova_client(context, region_name=None, password=None):
)
client = Client(CONF.nova_client_version,
- username=context.user,
+ username=context.user_id,
password=password,
endpoint_override=url,
project_id=context.project_id,
@@ -141,7 +141,7 @@ def cinder_client(context, region_name=None):
endpoint_type=CONF.cinder_endpoint_type
)
- client = CinderClient.Client(context.user, context.auth_token,
+ client = CinderClient.Client(context.user_id, context.auth_token,
project_id=context.project_id,
auth_url=CONF.service_credentials.auth_url,
insecure=CONF.cinder_api_insecure)