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:
Vladimir Kozhukalov 2016-12-14 16:18:30 +03:00
parent 7d35078a9d
commit 02b7979845
1 changed files with 1 additions and 1 deletions

View File

@ -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(