Commit 00ab5bff authored by Grégory Wisniewski's avatar Grégory Wisniewski

Retreive the node after check basics requirements.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1614 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 5e799d01
......@@ -33,12 +33,12 @@ class PrimaryBootstrapHandler(AnswerBaseHandler):
def acceptIdentification(self, conn, node_type,
uuid, num_partitions, num_replicas, your_uuid):
app = self.app
node = app.nm.getByAddress(conn.getAddress())
# this must be a master node
if node_type != NodeTypes.MASTER:
conn.close()
return
node = app.nm.getByAddress(conn.getAddress())
conn.setUUID(uuid)
node.setUUID(uuid)
......
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