Commit d92aaeee authored by Vincent Pelletier's avatar Vincent Pelletier

Avoid using the same variable name for 2 different uses in the same scope.

uuid variable is used both to contain peer uuid and one of the uuids sent
in message payload.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1693 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent d45ac13e
...@@ -27,8 +27,7 @@ class ElectionHandler(MasterHandler): ...@@ -27,8 +27,7 @@ class ElectionHandler(MasterHandler):
"""This class deals with events for a primary master election.""" """This class deals with events for a primary master election."""
def notifyNodeInformation(self, conn, node_list): def notifyNodeInformation(self, conn, node_list):
uuid = conn.getUUID() if conn.getUUID() is None:
if uuid is None:
raise protocol.ProtocolError('Not identified') raise protocol.ProtocolError('Not identified')
app = self.app app = self.app
for node_type, addr, uuid, state in node_list: for node_type, addr, uuid, state in node_list:
......
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