Commit b5309c78 authored by Vincent Pelletier's avatar Vincent Pelletier

Simplify code.

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