Revision 0897ff84 kamaki/clients/astakos/__init__.py

b/kamaki/clients/astakos/__init__.py
51 51
            kwargs['auth_url'] = kwargs.get('auth_url', kwargs['base_url'])
52 52
        super(AstakosClient, self).__init__(*args, **kwargs)
53 53

  
54
    def get_service_endpoints(self, service_type, version=None):
55
        services = parse_endpoints(
56
            self.get_endpoints(), ep_type=service_type, ep_version_id=version)
57
        return services[0]['endpoints'][0] if services else []
58

  
54 59

  
55 60
def _astakos_error(foo):
56 61
    def wrap(self, *args, **kwargs):

Also available in: Unified diff