From 29367d9f0851cc8805f013a85be7dacdf00d0226 Mon Sep 17 00:00:00 2001 From: Jay Dobies Date: Thu, 26 Feb 2015 16:01:49 -0500 Subject: [PATCH] Default service_type for endpoint lookup Without this, the endpoint is failing to look up since the service_type is None. Change-Id: I9ea40ae348d57fa03a258b364566dfb9a66e1744 --- tuskarclient/common/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuskarclient/common/auth.py b/tuskarclient/common/auth.py index 20c5fc3..2e1cdba 100644 --- a/tuskarclient/common/auth.py +++ b/tuskarclient/common/auth.py @@ -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)