Commit a3c67575 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Use asTuple provide by Node class.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1636 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 704ff1af
...@@ -249,7 +249,7 @@ class Application(object): ...@@ -249,7 +249,7 @@ class Application(object):
address = node.getAddress() address = node.getAddress()
uuid = node.getUUID() uuid = node.getUUID()
state = node.getState() state = node.getState()
node_info = (node.getType(), address, uuid, state) node_info = node.asTuple()
def assign_for_notification(node_type): def assign_for_notification(node_type):
# helper function # helper function
node_dict.setdefault(node_type, []).append(node_info) node_dict.setdefault(node_type, []).append(node_info)
......
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