summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiana Clarke <diana.joan.clarke@gmail.com>2017-02-22 10:08:13 -0500
committerDiana Clarke <diana.joan.clarke@gmail.com>2017-04-29 09:49:35 -0400
commit60c5d3b2f49a50abbf44dc807542908c7eb3e954 (patch)
treea73f68d11d99caa932f9a271a99fa7d0ddb8b3ac
parent983f7211a872a5be9698d7c57fda41020765a64a (diff)
downloadpython-novaclient-60c5d3b2f49a50abbf44dc807542908c7eb3e954.tar.gz
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 (cherry picked from commit 1a9bfc424a59b4f2675d607881a5f0b2605a3f06)
-rw-r--r--novaclient/shell.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/novaclient/shell.py b/novaclient/shell.py
index 6883c992..68f74d23 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,