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
This commit is contained in:
parent
7d35078a9d
commit
02b7979845
|
@ -23,7 +23,7 @@ class MasterNodeSettings(object):
|
||||||
class_api_path = "settings/"
|
class_api_path = "settings/"
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.connection = client.APIClient
|
self.connection = client.APIClient.default_client()
|
||||||
|
|
||||||
def update(self, data):
|
def update(self, data):
|
||||||
return self.connection.put_request(
|
return self.connection.put_request(
|
||||||
|
|
Loading…
Reference in New Issue