From 02b79798451a8d0680313a7ed9af390d114e0896 Mon Sep 17 00:00:00 2001 From: Vladimir Kozhukalov Date: Wed, 14 Dec 2016 16:18:30 +0300 Subject: [PATCH] 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 --- .../fuel_bootstrap/objects/master_node_settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/fuel_bootstrap/fuel_bootstrap_cli/fuel_bootstrap/objects/master_node_settings.py b/contrib/fuel_bootstrap/fuel_bootstrap_cli/fuel_bootstrap/objects/master_node_settings.py index e452a260..943d4a05 100644 --- a/contrib/fuel_bootstrap/fuel_bootstrap_cli/fuel_bootstrap/objects/master_node_settings.py +++ b/contrib/fuel_bootstrap/fuel_bootstrap_cli/fuel_bootstrap/objects/master_node_settings.py @@ -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(