Filter placement API endpoint by type too
The change introduced by I7e8c0e3ef7aefd0574aa2a28560653005f2640d6 is silently ignore the endpoint_type option so we need to use filter. Change-Id: If65b1da79dfa73c73d91af457b2a5f93c6b2eedc Related-Bug: #1818943 Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
This commit is contained in:
parent
1376d2e807
commit
2a888c1281
@ -138,7 +138,8 @@ class PlacementAPIClient(object):
|
||||
self._target_version = _get_version(openstack_api_version)
|
||||
self._conf = conf
|
||||
self._ks_filter = {'service_type': 'placement',
|
||||
'region_name': self._conf.placement.region_name}
|
||||
'region_name': self._conf.placement.region_name,
|
||||
'interface': self._conf.placement.endpoint_type}
|
||||
self._api_version_header = {API_VERSION_REQUEST_HEADER:
|
||||
self._openstack_api_version}
|
||||
self._client = None
|
||||
|
Loading…
Reference in New Issue
Block a user