From 5416fec7d9af847fecf6e0a16f3a4a00e9161127 Mon Sep 17 00:00:00 2001 From: "Joseph W. Breu" Date: Mon, 5 Nov 2012 10:12:49 -0600 Subject: [PATCH] Fix keystoneclient so swift works against Rackspace Cloud Files Fixes bug 1074784 https://bugs.launchpad.net/python-keystoneclient/+bug/1074784 RAX auth doesn't return a service catalog with an identity endpoint that contains an auth URL. This causes swift client to log an error of "Authorization Failure. Authorization Failed: Endpoint not found." Change-Id: I26174a664029617f097dc35c57ef30b34cd2fb61 --- keystoneclient/v2_0/client.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/keystoneclient/v2_0/client.py b/keystoneclient/v2_0/client.py index 02fd59b6f..1c948b1c7 100644 --- a/keystoneclient/v2_0/client.py +++ b/keystoneclient/v2_0/client.py @@ -138,3 +138,8 @@ class Client(client.HTTPClient): # Unscoped tokens don't return a service catalog; # allow those to pass while any other errors bubble up. pass + except exceptions.EndpointNotFound: + # the client shouldn't expect the authenticating user to + # be authorized to view adminURL's, nor expect the identity + # endpoint to publish one + pass