Commit 96d41638 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Add 'start cluster <name>' command in neoctl as an alias to 'set cluster main

VERIFYING' which is confusing.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@911 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 91b156a9
......@@ -119,6 +119,15 @@ def printPTAction(options):
uuid = None
return protocol.askPartitionList(min_offset, max_offset, uuid)
def startCluster(options):
"""
Allow it to leave the recovery stage and accept the current partition table,
or make an empty if nothing was found.
Parameter: Cluster name
"""
name = options.pop(0)
return protocol.setClusterState(name, protocol.VERIFYING)
action_dict = {
'print': {
'pt': printPTAction,
......@@ -130,6 +139,9 @@ action_dict = {
'cluster': setClusterAction,
},
'add': addAction,
'start': {
'cluster': startCluster,
}
}
class Application(object):
......
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