Commit 0f1164d9 authored by Vincent Pelletier's avatar Vincent Pelletier

Node class (and inheriting classes) have a getState, getNodeState doens't exist.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@641 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 39073203
......@@ -144,7 +144,7 @@ class ConnectionPool(object):
def getConnForNode(self, node):
"""Return a locked connection object to a given node
If no connection exists, create a new one"""
if node.getNodeState() in (DOWN_STATE, HIDDEN_STATE):
if node.getState() in (DOWN_STATE, HIDDEN_STATE):
return None
uuid = node.getUUID()
self.connection_lock_acquire()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment