#NEWLINE# @ classmethod #NEWLINE# def find( cls , session , name_or_id , path_args = None , ignore_missing = True ) : #NEWLINE# #INDENT# stk = super ( Stack , cls ) . find ( session , name_or_id , path_args = path_args , ignore_missing = ignore_missing ) #NEWLINE# if ( stk and ( stk . status in [ 'DELETE_COMPLETE' , 'ADOPT_COMPLETE' ] ) ) : #NEWLINE# #INDENT# if ignore_missing : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise exceptions . ResourceNotFound ( ( 'No stack found for %s' % name_or_id ) ) #NEWLINE# #UNINDENT# #UNINDENT# return stk