Commit 21fd729f authored by Grégory Wisniewski's avatar Grégory Wisniewski

Fix enableStorageList method that expect an uuid list instead of a node list.

This fix the use of 'neoctl add all'.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@1107 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 1865a291
......@@ -166,9 +166,10 @@ class TerminalNeoCTL(object):
if len(params) == 1 and params[0] == 'all':
node_list = self.neoctl.getNodeList(
node_type=protocol.STORAGE_NODE_TYPE)
uuid_list = [node[2] for node in node_list]
else:
node_list = [self.asNode(x) for x in params]
self.neoctl.enableStorageList(node_list)
uuid_list = [self.asNode(x) for x in params]
self.neoctl.enableStorageList(uuid_list)
def dropNode(self, params):
"""
......
......@@ -61,11 +61,11 @@ class NeoCTL(object):
raise NotReadyException(response[2])
return response
def enableStorageList(self, node_list):
def enableStorageList(self, uuid_list):
"""
Put all given storage nodes in "running" state.
"""
packet = protocol.addPendingNodes(node_list)
packet = protocol.addPendingNodes(uuid_list)
response = self.__ask(packet)
assert response[0] == protocol.ERROR
assert response[1] == protocol.NO_ERROR_CODE
......
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