Skip to content
Browse files

Fix bug LIBCLOUD-635 - openstack-swift auth v2

As reported by James in LIBCLOUD-635

OpenStack-Swift authentication is broken from at least
 0.16. I confirmed the bug in 0.17 and master.

the code here tries to perform operations on a
OpenStackServiceCatalogEntryEndpoint that cannot
be performed on this class.

Since get_endpoint() will return an endpoint with
a URL (not 3 different URLs: publicURL/internalURL/
adminURL) or error, it should be safe to test for
existence and use the url. However, review very

This fix has been tested against OpenStack Juno.
  • Loading branch information...
fifieldt committed Apr 1, 2015
1 parent 78d90ea commit ec58868c3344a9bfe7a0166fc31c0548ed22ea87
Showing with 2 additions and 2 deletions.
  1. +2 −2 libcloud/storage/drivers/
@@ -138,8 +138,8 @@ def get_endpoint(self, *args, **kwargs):
endpoint = self.service_catalog.get_endpoint(
name=self._service_name, region=self._service_region)

if PUBLIC_ENDPOINT_KEY in endpoint:
return endpoint[PUBLIC_ENDPOINT_KEY]
if endpoint:
return endpoint.url
raise LibcloudError('Could not find specified endpoint')

0 comments on commit ec58868

Please sign in to comment.
You can’t perform that action at this time.