Default service_type for endpoint lookup

Without this, the endpoint is failing to look up since the service_type
is None.

Change-Id: I9ea40ae348d57fa03a258b364566dfb9a66e1744
This commit is contained in:
Jay Dobies 2015-02-26 16:01:49 -05:00
parent 0aec0557db
commit 29367d9f08

View File

@ -48,7 +48,7 @@ class KeystoneAuthPlugin(auth.BaseAuthPlugin):
token = self._ksclient.auth_token
endpoint = (self.opts.get('endpoint') or
self._ksclient.service_catalog.url_for(
service_type=service_type,
service_type=service_type or 'management',
endpoint_type=endpoint_type))
return (token, endpoint)