Fix gnocchiclient creation

Gnocchiclient uses keystoneauth1.adapter so that adapter_options
need to be given.
This patch fixes gnocchiclient creation.

Change-Id: I6b5d8ee775929f4b3fd30be3321b378d19085547
Closes-Bug: #1714871
This commit is contained in:
Hidekazu Nakamura
2017-09-04 14:52:11 +09:00
parent c9a43d8da4
commit a2fa13c8ff
2 changed files with 7 additions and 2 deletions

View File

@@ -110,8 +110,12 @@ class OpenStackClients(object):
'api_version')
gnocchiclient_interface = self._get_client_option('gnocchi',
'endpoint_type')
adapter_options = {
"interface": gnocchiclient_interface
}
self._gnocchi = gnclient.Client(gnocchiclient_version,
interface=gnocchiclient_interface,
adapter_options=adapter_options,
session=self.session)
return self._gnocchi