Commit b5309c78 authored by Vincent Pelletier's avatar Vincent Pelletier

Simplify code.

parent 197e5ec1
......@@ -403,10 +403,7 @@ class Application(object):
def isValidUUID(self, uuid, addr):
node = self.nm.getByUUID(uuid)
if node is not None and node.getAddress() is not None \
and node.getAddress() != addr:
return False
return uuid != self.uuid and uuid is not None
return node is None or node.getAddress() in (None, addr)
def getClusterState(self):
return self.cluster_state
......
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