summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) ->