#NEWLINE# def get_endpoint( self , * args , **kwargs ) : #NEWLINE# #INDENT# if ( '2.0' in self . _auth_version ) : #NEWLINE# #INDENT# endpoint = self . service_catalog . get_endpoint ( service_type = self . _service_type , name = self . _service_name , region = self . _service_region ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( '1.1' in self . _auth_version ) or ( '1.0' in self . _auth_version ) ) : #NEWLINE# #INDENT# endpoint = self . service_catalog . get_endpoint ( name = self . _service_name , region = self . _service_region ) #NEWLINE# #UNINDENT# #UNINDENT# if endpoint : #NEWLINE# #INDENT# return endpoint . url #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise LibcloudError ( 'Could not find specified endpoint' )