summaryrefslogtreecommitdiff
path: root/src/rabbit_multi.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rabbit_multi.erl')
-rw-r--r--src/rabbit_multi.erl12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/rabbit_multi.erl b/src/rabbit_multi.erl
index 15349a60..c6a7e920 100644
--- a/src/rabbit_multi.erl
+++ b/src/rabbit_multi.erl
@@ -93,14 +93,12 @@ action(status, [], RpcTimeout) ->
io:format("Status of all running nodes...~n", []),
call_all_nodes(
fun({Node, Pid}) ->
+ Status = rpc:call(Node, rabbit, status, [], RpcTimeout),
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])
+ [Node, Pid, case parse_status(Status) of
+ false -> not_running;
+ true -> running
+ end])
end);
action(stop_all, [], RpcTimeout) ->