#NEWLINE# def _cleanup_servers( self ) : #NEWLINE# #INDENT# exception_list = list ( ) #NEWLINE# for i in self . nova . servers . list ( ) : #NEWLINE# #INDENT# if i . name . startswith ( self . new_item_name ) : #NEWLINE# #INDENT# self . nova . servers . delete ( i ) #NEWLINE# for _ in _utils . _iterate_timeout ( self . timeout , 'Timeout deleting servers' ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . nova . servers . get ( server = i ) #NEWLINE# #UNINDENT# except nova_exc . NotFound : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# exception_list . append ( str ( e ) ) #NEWLINE# continue #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# if exception_list : #NEWLINE# #INDENT# raise OpenStackCloudException ( '\n' . join ( exception_list ) )