#NEWLINE# def _fake_migration_get_in_progress_by_host_and_node( self , ctxt , host , node ) : #NEWLINE# #INDENT# status = [ 'confirmed' , 'reverted' , 'error' ] #NEWLINE# migrations = [ ] #NEWLINE# for migration in self . _migrations . values ( ) : #NEWLINE# #INDENT# migration = obj_base . obj_to_primitive ( migration ) #NEWLINE# if ( migration [ 'status' ] in status ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# uuid = migration [ 'instance_uuid' ] #NEWLINE# migration [ 'instance' ] = self . _instances [ uuid ] #NEWLINE# migrations . append ( migration ) #NEWLINE# #UNINDENT# return migrations