Commit 0b2f519d authored by Vincent Pelletier's avatar Vincent Pelletier

None uuid is not a valid UUID.

parent 020ba117
...@@ -425,7 +425,7 @@ class Application(object): ...@@ -425,7 +425,7 @@ class Application(object):
raise RuntimeError, 'No UUID namespace found for this node type' raise RuntimeError, 'No UUID namespace found for this node type'
def isValidUUID(self, uuid, addr): def isValidUUID(self, uuid, addr):
if uuid == self.uuid: if uuid == self.uuid or uuid is None:
return False return False
node = self.nm.getByUUID(uuid) node = self.nm.getByUUID(uuid)
return node is None or node.getAddress() in (None, addr) return node is None or node.getAddress() in (None, addr)
......
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