#NEWLINE# def __exit__( self , exc_type , exc_val , exc_tb ) : #NEWLINE# #INDENT# if ( not self . already_member ) : #NEWLINE# #INDENT# LOG . debug ( 'Removing %s user from tenant %s' , self . user . name , self . tenant . name ) #NEWLINE# self . keystone . roles . remove_user_role ( user = self . user , role = self . role , tenant = self . tenant )