Commit 75d6d63a authored by Grégory Wisniewski's avatar Grégory Wisniewski

Use Node.asTuple() in shutdown process.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1733 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent e8f5b9dc
......@@ -526,14 +526,11 @@ class Application(object):
node = self.nm.getByUUID(c.getUUID())
if node is None:
continue
notification = Packets.NotifyNodeInformation([node.asTuple()])
if node.isClient():
node_list = [(node.getType(), node.getAddress(),
node.getUUID(), NodeStates.DOWN)]
c.notify(Packets.NotifyNodeInformation(node_list))
if node.isStorage() or node.isMaster():
node_list = [(node.getType(), node.getAddress(),
node.getUUID(), NodeStates.DOWN)]
c.notify(Packets.NotifyNodeInformation(node_list))
c.notify(notification)
elif node.isStorage() or node.isMaster():
c.notify(notification)
# then shutdown
sys.exit("Cluster has been asked to shut down")
......
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