#NEWLINE# def instance_fault_create_at_top( self , message , instance_fault , **kwargs ) : #NEWLINE# #INDENT# "Destroy an instance from the DB if we're a top level cell." #NEWLINE# if ( not self . _at_the_top ( ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# items_to_remove = [ 'id' ] #NEWLINE# for key in fault : #NEWLINE# #INDENT# instance_fault . pop ( key , None ) #NEWLINE# #UNINDENT# LOG . debug ( 'Got message to create instance fault: %s' , instance_fault ) #NEWLINE# fault = objects . InstanceFault ( context = message . ctxt ) #NEWLINE# fault . update ( instance_fault ) #NEWLINE# fault . create ( )