#NEWLINE# def get_auth_ref( ) : #NEWLINE# #INDENT# auth_details = get_auth_details ( ) #NEWLINE# auth_ref = get_auth_from_file ( ) #NEWLINE# if ( auth_ref is None ) : #NEWLINE# #INDENT# auth_ref = keystone_auth ( auth_details ) #NEWLINE# #UNINDENT# if is_token_expired ( auth_ref , auth_ref ) : #NEWLINE# #INDENT# auth_ref = keystone_auth ( auth_details ) #NEWLINE# #UNINDENT# return auth_ref