#NEWLINE# def get_token_auth_plugin( auth_url , token , project_id = None , domain_name = None ) : #NEWLINE# #INDENT# if ( get_keystone_version ( ) >= 3 ) : #NEWLINE# #INDENT# if domain_name : #NEWLINE# #INDENT# return v3_auth . Token ( auth_url = auth_url , token = token , domain_name = domain_name , reauthenticate = False ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return v3_auth . Token ( auth_url = auth_url , token = token , project_id = project_id , reauthenticate = False ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# return v2_auth . Token ( auth_url = auth_url , token = token , tenant_id = project_id , reauthenticate = False )