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
This commit is contained in:
parent
ffe6524573
commit
8c90ee3b7b
@ -26,7 +26,7 @@ from heatclient.v1 import client as heatclient
|
|||||||
from keystoneclient import base as keystone_base
|
from keystoneclient import base as keystone_base
|
||||||
from keystoneclient.v3 import client as keystoneclient
|
from keystoneclient.v3 import client as keystoneclient
|
||||||
from novaclient.openstack.common.apiclient import base as nova_base
|
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.
|
# TODO(nmakhotkin): Find a rational way to do it for neutron.
|
||||||
@ -105,7 +105,7 @@ GLANCE_NAMESPACE_LIST = [
|
|||||||
|
|
||||||
|
|
||||||
def get_nova_client(**kwargs):
|
def get_nova_client(**kwargs):
|
||||||
return novaclient.Client()
|
return novaclient.Client(2)
|
||||||
|
|
||||||
|
|
||||||
def get_keystone_client(**kwargs):
|
def get_keystone_client(**kwargs):
|
||||||
|
Loading…
Reference in New Issue
Block a user