Commit 3ee69f4e authored by Grégory Wisniewski's avatar Grégory Wisniewski

Use isMaster() instead of check the node type.


git-svn-id: https://svn.erp5.org/repos/neo/trunk@1314 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent dd02fa4c
......@@ -618,7 +618,7 @@ class Application(object):
if conn_uuid is not None:
node = nm.getNodeByUUID(conn_uuid)
assert node is not None
assert node.getType() == protocol.MASTER_NODE_TYPE
assert node.isMaster()
conn.setHandler(handler)
......
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