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
This commit is contained in:
Joseph W. Breu
2012-11-05 10:12:49 -06:00
parent 026dc8ef1b
commit 5416fec7d9

View File

@@ -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