Commit b37d9755 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Remove useless 'elif' statement.

This condition is always true as the primary_node was found by UUID.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1556 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 5572c34e
...@@ -184,7 +184,7 @@ class ClientElectionHandler(ElectionHandler): ...@@ -184,7 +184,7 @@ class ClientElectionHandler(ElectionHandler):
# I don't know such a node. Probably this information # I don't know such a node. Probably this information
# is old. So ignore it. # is old. So ignore it.
logging.warning('received an unknown primary node UUID') logging.warning('received an unknown primary node UUID')
elif primary_node.getUUID() == primary_uuid: else:
# Whatever the situation is, I trust this master. # Whatever the situation is, I trust this master.
app.primary = False app.primary = False
app.primary_master_node = primary_node app.primary_master_node = primary_node
......
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