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
    9bbe5a87b7

Change-Id: Ifa5ed16f10a43c9961e98b03fc0535e12d7977ba
This commit is contained in:
Diana Clarke 2017-02-22 10:08:13 -05:00
parent 540f9ceb46
commit 1a9bfc424a

View File

@ -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,