Change the way how we instantiate fuel client
The issue is that in python-fuelclient API has been
changed and fuelclient.client.APIClient is not available
anymore. It used to be a singleton of fuel client but
now it is deprecated. So, let's use APIClient.default_client
classmethod to instantiate APIClient.
https://github.com/openstack/python-fuelclient/blob/stable/newton/fuelclient/client.py#L51
Change-Id: I5287184c6f1c6abf8ac61894db0bd51fbf730401
Closes-Bug: #1620584
(cherry picked from commit 02b7979845
)
This commit is contained in:
parent
d5ac595f92
commit
5fa98926f5
|
@ -23,7 +23,7 @@ class MasterNodeSettings(object):
|
|||
class_api_path = "settings/"
|
||||
|
||||
def __init__(self):
|
||||
self.connection = client.APIClient
|
||||
self.connection = client.APIClient.default_client()
|
||||
|
||||
def update(self, data):
|
||||
return self.connection.put_request(
|
||||
|
|
Loading…
Reference in New Issue