From 8c90ee3b7b45ba0dbefb28c298d8c3339226acda Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Mon, 14 Sep 2015 18:15:15 +0200 Subject: [PATCH] get_action_list: use novaclient.client.Client This solves the following issue: ---snip--- UserWarning: 'novaclient.v2.client.Client' is not designed to be initialized directly. It is inner class of novaclient. Please, use 'novaclient.client.Client' instead. ---snap--- Partial-bug: #1493576 Change-Id: Iceca8ccdfaa15108d3ea321ff164975f5f94ae95 --- tools/get_action_list.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/get_action_list.py b/tools/get_action_list.py index 2b11a8153..5e9ae7afc 100644 --- a/tools/get_action_list.py +++ b/tools/get_action_list.py @@ -26,7 +26,7 @@ from heatclient.v1 import client as heatclient from keystoneclient import base as keystone_base from keystoneclient.v3 import client as keystoneclient from novaclient.openstack.common.apiclient import base as nova_base -from novaclient.v2 import client as novaclient +from novaclient import client as novaclient # TODO(nmakhotkin): Find a rational way to do it for neutron. @@ -105,7 +105,7 @@ GLANCE_NAMESPACE_LIST = [ def get_nova_client(**kwargs): - return novaclient.Client() + return novaclient.Client(2) def get_keystone_client(**kwargs):