From 57411fec5e44c720381d95e1f7c5f83ebf7a5b0d Mon Sep 17 00:00:00 2001 From: Andrey Kurilin Date: Tue, 21 Jun 2016 21:27:28 +0300 Subject: [PATCH] Fix wrong usage of novaclient novaclient.client.Client is a documented way to initialize novaclient. Also, it provides a backward compatible layer. Change-Id: I9dd15abbeda26c5a6a40139ce47a200720decce8 Closes-Bug: #1493576 --- contrib/nova/congress.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/nova/congress.py b/contrib/nova/congress.py index 274b4fd5e..67e830149 100644 --- a/contrib/nova/congress.py +++ b/contrib/nova/congress.py @@ -29,7 +29,7 @@ import webob.exc from congressclient.v1 import client import keystoneclient from keystoneclient.v3 import client as ksv3client -from novaclient.v2 import client as nova_v2 +from novaclient import client as nova LOG = logging.getLogger(__name__) @@ -89,7 +89,7 @@ class Congress(wsgi.Middleware): projects = k3_client.projects.list(domain=domain) # obtain list of hosts under each of these projects - nova_c = nova_v2.Client(session=session) + nova_c = nova.Client("2", session=session) ram_p = 0 disk_p = 0 cpus_p = 0