Commit cac80ee6 authored by Vincent Pelletier's avatar Vincent Pelletier

Fix neoctl when a node is only known by its UUID (for example, it's present in...

Fix neoctl when a node is only known by its UUID (for example, it's present in the partition table but never conencted to primary master).


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@900 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 499646f4
......@@ -65,7 +65,10 @@ class CommandEventHandler(EventHandler):
if len(node_list) == 0:
data = "No Node"
else:
for node_type, (ip, port), uuid, state in node_list:
for node_type, address, uuid, state in node_list:
if address is None:
address = (None, None)
ip, port = address
data += "\n%s - %s - %s:%s - %s" % (node_type, dump(uuid), ip, port, state)
self.app.result = data
......
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