#NEWLINE# @ classmethod #NEWLINE# def wait_for_status( cls , command , status , tries ) : #NEWLINE# #INDENT# opts = cls . get_show_opts ( [ 'status' ] ) #NEWLINE# for attempt in range ( tries ) : #NEWLINE# #INDENT# time . sleep ( 1 ) #NEWLINE# raw_output = cls . openstack ( ( command + opts ) ) #NEWLINE# if ( raw_output == status ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# #UNINDENT# cls . assertOutput ( status , raw_output )