Merge "Don't read config in Manager class definition"
This commit is contained in:
commit
10973fb725
@ -24,8 +24,6 @@ CONF = config.CONF
|
|||||||
class Manager(clients.ServiceClients):
|
class Manager(clients.ServiceClients):
|
||||||
"""Top level manager for OpenStack tempest clients"""
|
"""Top level manager for OpenStack tempest clients"""
|
||||||
|
|
||||||
default_params = config.service_client_config()
|
|
||||||
|
|
||||||
def __init__(self, credentials, scope='project'):
|
def __init__(self, credentials, scope='project'):
|
||||||
"""Initialization of Manager class.
|
"""Initialization of Manager class.
|
||||||
|
|
||||||
@ -46,6 +44,10 @@ class Manager(clients.ServiceClients):
|
|||||||
self._set_object_storage_clients()
|
self._set_object_storage_clients()
|
||||||
self._set_image_clients()
|
self._set_image_clients()
|
||||||
self._set_network_clients()
|
self._set_network_clients()
|
||||||
|
# TODO(andreaf) This is maintained for backward compatibility
|
||||||
|
# with plugins, but it should removed eventually, since it was
|
||||||
|
# never a stable interface and it's not useful anyways
|
||||||
|
self.default_params = config.service_client_config()
|
||||||
|
|
||||||
def _set_network_clients(self):
|
def _set_network_clients(self):
|
||||||
self.network_agents_client = self.network.AgentsClient()
|
self.network_agents_client = self.network.AgentsClient()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user