Commit 6c267d0a authored by Grégory Wisniewski's avatar Grégory Wisniewski

Node variable wasn't defined, retreive it from the uuid.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@1001 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 0b0fe86d
...@@ -80,7 +80,8 @@ class ClientServiceHandler(BaseServiceHandler): ...@@ -80,7 +80,8 @@ class ClientServiceHandler(BaseServiceHandler):
# this assertion when done # this assertion when done
assert node_type == protocol.STORAGE_NODE_TYPE assert node_type == protocol.STORAGE_NODE_TYPE
assert state in (protocol.TEMPORARILY_DOWN_STATE, protocol.BROKEN_STATE) assert state in (protocol.TEMPORARILY_DOWN_STATE, protocol.BROKEN_STATE)
node = self.app.nm.getNodeByUUID(uuid)
assert node is not None
if self.app.em.getConnectionByUUID(uuid) is None: if self.app.em.getConnectionByUUID(uuid) is None:
# trust this notification only if I don't have a connexion to # trust this notification only if I don't have a connexion to
# this node # this 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