diff options
author | 2016-01-15 16:04:39 +0100 | |
---|---|---|
committer | 2016-01-15 16:04:39 +0100 | |
commit | eb12e95f822c70566cb417e5b5d85a65df14b79c (patch) | |
tree | 26f341109ab1c3a77bbf5b4cbc4bda10c168ac9a /testcases/VIM/OpenStack/CI/libraries/clean_openstack.py | |
parent | 4958e8f990668c893b3c825222dbd00a293ebd02 (diff) |
Change novaclient usage
Avoid having this warning:
UserWarning: 'novaclient.v2.client.Client' is not designed to be initialized directly.
Change-Id: I1a9154d97be14007bcb988a5ccd630eadf2e8a5f
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'testcases/VIM/OpenStack/CI/libraries/clean_openstack.py')
-rw-r--r-- | testcases/VIM/OpenStack/CI/libraries/clean_openstack.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testcases/VIM/OpenStack/CI/libraries/clean_openstack.py b/testcases/VIM/OpenStack/CI/libraries/clean_openstack.py index eab89d22d..4ea15ce8e 100644 --- a/testcases/VIM/OpenStack/CI/libraries/clean_openstack.py +++ b/testcases/VIM/OpenStack/CI/libraries/clean_openstack.py @@ -22,7 +22,7 @@ import sys import time import yaml -import novaclient.v2.client as novaclient +from novaclient import client as novaclient from neutronclient.v2_0 import client as neutronclient from keystoneclient.v2_0 import client as keystoneclient from cinderclient import client as cinderclient @@ -355,7 +355,7 @@ def remove_tenants(keystone_client): def main(): creds_nova = functest_utils.get_credentials("nova") - nova_client = novaclient.Client(**creds_nova) + nova_client = novaclient.Client('2',**creds_nova) creds_neutron = functest_utils.get_credentials("neutron") neutron_client = neutronclient.Client(**creds_neutron) |