From 1a9bfc424a59b4f2675d607881a5f0b2605a3f06 Mon Sep 17 00:00:00 2001 From: Diana Clarke Date: Wed, 22 Feb 2017 10:08:13 -0500 Subject: [PATCH] Fix devstack python-novaclient warning The following warning is emitted for every nova command using devstack, stable/ocata. site-packages/novaclient/client.py:278: UserWarning: The 'tenant_id' argument is deprecated in Ocata and its use may result in errors in future releases. As 'project_id' is provided, the 'tenant_id' argument will be ignored. See the following commit for related changes: Clarify meaning of project_id var 9bbe5a87b7df62a7962debba5db7c96555da6761 Change-Id: Ifa5ed16f10a43c9961e98b03fc0535e12d7977ba --- novaclient/shell.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/novaclient/shell.py b/novaclient/shell.py index 6883c9926..68f74d23e 100644 --- a/novaclient/shell.py +++ b/novaclient/shell.py @@ -840,8 +840,8 @@ class OpenStackComputeShell(object): # Recreate client object with discovered version. self.cs = client.Client( api_version, - os_username, os_password, os_project_name, - tenant_id=os_project_id, user_id=os_user_id, + os_username, os_password, project_id=os_project_id, + project_name=os_project_name, user_id=os_user_id, auth_url=os_auth_url, insecure=insecure, region_name=os_region_name, endpoint_type=endpoint_type, extensions=self.extensions, service_type=service_type,