summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rabbit_vhost_sup_sup.erl10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rabbit_vhost_sup_sup.erl b/src/rabbit_vhost_sup_sup.erl
index e036a82e64..3ce3201d6b 100644
--- a/src/rabbit_vhost_sup_sup.erl
+++ b/src/rabbit_vhost_sup_sup.erl
@@ -61,15 +61,15 @@ init([]) ->
start_on_all_nodes(VHost) ->
%% Do not try to start a vhost on booting peer nodes
- AllBooted = [Node || Node <- rabbit_nodes:all_running(), rabbit:is_booted(Node)],
- Nodes = [node() | AllBooted],
- NodesStarted = [{Node, start_vhost(VHost, Node)} || Node <- Nodes],
- Failures = lists:filter(fun
+ AllBooted = [Node || Node <- rabbit_nodes:all_running(), rabbit:is_booted(Node)],
+ Nodes = [node() | AllBooted],
+ Results = [{Node, start_vhost(VHost, Node)} || Node <- Nodes],
+ Failures = lists:filter(fun
({_, {ok, _}}) -> false;
({_, {error, {already_started, _}}}) -> false;
(_) -> true
end,
- NodesStart),
+ Results),
case Failures of
[] -> ok;
Errors -> {error, {failed_to_start_vhost_on_nodes, Errors}}