summaryrefslogtreecommitdiff
path: root/novaclient/shell.py
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-02-23 14:42:55 -0500
commit1a9bfc424a59b4f2675d607881a5f0b2605a3f06 (patch)
treef7251c5bb585c904768613159aa3817e18f37d00 /novaclient/shell.py
parent540f9ceb461e4ad55b83e873419f46d5b75bcac8 (diff)
downloadpython-novaclient-1a9bfc424a59b4f2675d607881a5f0b2605a3f06.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
Diffstat (limited to 'novaclient/shell.py')
-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,