Commit 5e98e011 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Reduce indentation.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1547 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent fced5fdd
...@@ -157,16 +157,14 @@ class ClientElectionHandler(ElectionHandler): ...@@ -157,16 +157,14 @@ class ClientElectionHandler(ElectionHandler):
if app.server == address: if app.server == address:
# This is self. # This is self.
continue continue
else: n = app.nm.getByAddress(address)
n = app.nm.getByAddress(address) # master node must be known
# master node must be known assert n is not None, 'Unknown master node address:' % address
assert n is not None if uuid is not None:
# If I don't know the UUID yet, believe what the peer
if uuid is not None: # told me at the moment.
# If I don't know the UUID yet, believe what the peer if n.getUUID() is None or n.getUUID() != uuid:
# told me at the moment. n.setUUID(uuid)
if n.getUUID() is None or n.getUUID() != uuid:
n.setUUID(uuid)
if primary_uuid is not None: if primary_uuid is not None:
# The primary master is defined. # The primary master is defined.
......
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