#NEWLINE# def destroy( self ) : #NEWLINE# #INDENT# ' Destroy the described instance ' #NEWLINE# self . log ( 'looking for instances to destroy' ) #NEWLINE# me = self . describe ( ) #NEWLINE# if me . present : #NEWLINE# #INDENT# self . log ( 'destroying instance' ) #NEWLINE# self . connection . terminate_instances ( instance_ids = [ me . provider_specific . id ] ) #NEWLINE# self . log ( 'instance destroyed' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . log ( 'no instance found to destroy' )