Set default service type to 'management'
We don't know yet what service type will be used in Keystone to identify Tuskar service, but it sure won't be 'metering'. We should rather get an unknown service type error than fetch a Ceilometer service URL mistakenly.
This commit is contained in:
parent
3e2415b6d2
commit
c1b74bd237
@ -35,7 +35,7 @@ def _get_ksclient(**kwargs):
|
||||
def _get_endpoint(client, **kwargs):
|
||||
"""Get an endpoint using the provided keystone client."""
|
||||
return client.service_catalog.url_for(
|
||||
service_type=kwargs.get('service_type') or 'metering',
|
||||
service_type=kwargs.get('service_type') or 'management',
|
||||
endpoint_type=kwargs.get('endpoint_type') or 'publicURL')
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user