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:
Maksim Malchuk 2019-07-18 01:48:31 +03:00
parent 1376d2e807
commit 2a888c1281
1 changed files with 2 additions and 1 deletions

View File

@ -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