summaryrefslogtreecommitdiff
path: root/src/rabbit_multi.erl
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@lshift.net>2008-09-11 17:52:22 +0100
committerMatthias Radestock <matthias@lshift.net>2008-09-11 17:52:22 +0100
commitc426de7aee243cc40983ea5e6dd515216e5b6651 (patch)
treee65165931a7cfad42de3f4cb259311ddf736fb4a /src/rabbit_multi.erl
parentef4d1c3083322f1334be0aac150981922de93714 (diff)
downloadrabbitmq-server-c426de7aee243cc40983ea5e6dd515216e5b6651.tar.gz
cosmeticbug19164
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) ->