Use 'barbican_endpoint_type'config option to get endpoint from catalog
_get_barbican_endpoint now uses barbican_endpoint_type config option to
retrieve a correct endpoint from catalog.
This config option is set to 'public' by default and it's a default
value for ServiceCatalog.endpoint_data_for method. It means that the
default behaviour will be the same as before this patch.
Change-Id: Idf4061fe3e35e3c47a993a56b23c0257c92e5cc3
Ivan Kolodyazhny
3 years ago
192 | 192 | return barbican.barbican_endpoint |
193 | 193 | elif getattr(auth, 'service_catalog', None): |
194 | 194 | endpoint_data = auth.service_catalog.endpoint_data_for( |
195 | service_type='key-manager') | |
195 | service_type='key-manager', | |
196 | interface=barbican.barbican_endpoint_type) | |
196 | 197 | return endpoint_data.url |
197 | 198 | else: |
198 | 199 | service_parameters = {'service_type': 'key-manager', |