summaryrefslogtreecommitdiff
path: root/src/rabbit_control_main.erl
diff options
context:
space:
mode:
authorFrancesco Mazzoli <francesco@rabbitmq.com>2012-07-25 18:18:08 +0100
committerFrancesco Mazzoli <francesco@rabbitmq.com>2012-07-25 18:18:08 +0100
commitad95be31ee90762658e8867a55d5b1f4b69dfd2c (patch)
tree1a680fc33e7918dd15d02ec6f05430a2bfbd6e7a /src/rabbit_control_main.erl
parent3dd32cdeb57c01a57db6c10299f4d3a1be475c6a (diff)
downloadrabbitmq-server-ad95be31ee90762658e8867a55d5b1f4b69dfd2c.tar.gz
add a first draft for the rabbitmqctl documentation
Also, accept disk as well as disc in `change_cluster_node_type'.
Diffstat (limited to 'src/rabbit_control_main.erl')
-rw-r--r--src/rabbit_control_main.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rabbit_control_main.erl b/src/rabbit_control_main.erl
index f3000f17..ebfc5636 100644
--- a/src/rabbit_control_main.erl
+++ b/src/rabbit_control_main.erl
@@ -254,7 +254,8 @@ action(join_cluster, Node, [ClusterNodeS], Opts, Inform) ->
action(change_cluster_node_type, Node, ["ram"], _Opts, Inform) ->
Inform("Turning ~p into a ram node", [Node]),
rpc_call(Node, rabbit_mnesia, change_cluster_node_type, [ram]);
-action(change_cluster_node_type, Node, ["disc"], _Opts, Inform) ->
+action(change_cluster_node_type, Node, [Type], _Opts, Inform)
+ when Type =:= "disc" orelse Type =:= "disk" ->
Inform("Turning ~p into a disc node", [Node]),
rpc_call(Node, rabbit_mnesia, change_cluster_node_type, [disc]);