#NEWLINE# def action( self , request , obj_id ) : #NEWLINE# #INDENT# domain = self . table . get_object_by_id ( obj_id ) #NEWLINE# if domain . enabled : #NEWLINE# #INDENT# LOG . info ( ( 'Disabling domain "%s".' % request ) ) #NEWLINE# try : #NEWLINE# #INDENT# api . keystone . domain_update ( request , domain_id = domain . id , name = domain . name , description = domain . description , enabled = False ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# exceptions . handle ( request , ignore = True ) #NEWLINE# return False