#NEWLINE# def get_next_node( self , curr_node_name = None , condition = 'on-success' ) : #NEWLINE# #INDENT# if ( not curr_node_name ) : #NEWLINE# #INDENT# return self . get_node ( self . actionchain . default ) #NEWLINE# #UNINDENT# current_node = self . get_node ( curr_node_name ) #NEWLINE# if ( condition == 'on-success' ) : #NEWLINE# #INDENT# return self . get_node ( current_node . on_success , raise_on_failure = True ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( condition == 'on-failure' ) : #NEWLINE# #INDENT# return self . get_node ( current_node . on_failure , raise_on_failure = True ) #NEWLINE# #UNINDENT# #UNINDENT# raise runnerexceptions . ActionRunnerException ( ( 'Unknown condition %s.' % condition ) )