Stop using self.parameters for compute clients

This was a leftover from when paremetrs was replaced with
configuration from the registry. Anything that is not standard
configuration must be passed from CONF.

Change-Id: I78fc364d10a1e56285766c57d5ec4c90be28fb18
This commit is contained in:
Andrea Frittoli 2017-04-09 19:13:13 +02:00
parent e356f33d85
commit 203225702e
1 changed files with 4 additions and 5 deletions

View File

@ -167,11 +167,10 @@ class Manager(clients.ServiceClients):
# NOTE: The following client needs special timeout values because
# the API is a proxy for the other component.
params_volume = {}
for _key in ('build_interval', 'build_timeout'):
_value = self.parameters['volume'].get(_key)
if _value:
params_volume[_key] = _value
params_volume = {
'build_interval': CONF.volume.build_interval,
'build_timeout': CONF.volume.build_timeout
}
self.volumes_extensions_client = self.compute.VolumesClient(
**params_volume)
self.compute_versions_client = self.compute.VersionsClient(