summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert@lshift.net>2008-09-11 17:52:23 +0100
committerHubert Plociniczak <hubert@lshift.net>2008-09-11 17:52:23 +0100
commitfc9c81a68a2e677368f60b55839ebc8b5d8cdaad (patch)
tree19d9553aa1c743347f351cba2b1c2d8a000df6ed
parent86644f75bbec05e6810dc1e8de87dd884a4719c5 (diff)
downloadrabbitmq-server-git-fc9c81a68a2e677368f60b55839ebc8b5d8cdaad.tar.gz
cosmetic
-rw-r--r--src/rabbit_multi.erl14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/rabbit_multi.erl b/src/rabbit_multi.erl
index 2ff59dc88d..15349a60a2 100644
--- a/src/rabbit_multi.erl
+++ b/src/rabbit_multi.erl
@@ -93,12 +93,14 @@ action(status, [], RpcTimeout) ->
io:format("Status of all running nodes...~n", []),
call_all_nodes(
fun({Node, Pid}) ->
- io:format("Node '~p' with Pid ~p: ", [Node, Pid]),
- case parse_status(
- rpc:call(Node, rabbit, status, [], RpcTimeout)) of
- false -> io:format("~p~n", ["not running"]);
- true -> io:format("~p~n", ["running"])
- end
+ io:format("Node '~p' with Pid ~p: ~p~n",
+ [Node, Pid,
+ case parse_status(
+ rpc:call(
+ Node, rabbit, status, [], RpcTimeout)) of
+ false -> not_running;
+ true -> running
+ end])
end);
action(stop_all, [], RpcTimeout) ->