#NEWLINE# def _GetNode( self , node_id ) : #NEWLINE# #INDENT# if isinstance ( node_id , objects . Node ) : #NEWLINE# #INDENT# return node_id #NEWLINE# #UNINDENT# node = None #NEWLINE# if ( self . _cfg is not None ) : #NEWLINE# #INDENT# node = self . _cfg . GetNodeInfo ( node_id ) #NEWLINE# if ( node is None ) : #NEWLINE# #INDENT# node = self . _cfg . GetNodeInfoByName ( node_id ) #NEWLINE# #UNINDENT# #UNINDENT# assert ( node is not None ) , ( "Failed to find '%s' in configuration" % node_id ) #NEWLINE# return self