Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Merge branch 'stable'
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbbell committed Jul 20, 2016
2 parents 4f97844 + 215e9f5 commit b3468c5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/rabbit_ct_broker_helpers.erl
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,13 @@ nodename_to_index1([], Node, _) ->
node_uri(Config, Node) ->
node_uri(Config, Node, []).

node_uri(Config, Node, amqp) ->
node_uri(Config, Node, []);
node_uri(Config, Node, management) ->
node_uri(Config, Node, [
{scheme, "http"},
{tcp_port_name, tcp_port_mgmt}
]);
node_uri(Config, Node, Options) ->
Scheme = proplists:get_value(scheme, Options, "amqp"),
Hostname = case proplists:get_value(use_ipaddr, Options, false) of
Expand All @@ -685,7 +692,8 @@ node_uri(Config, Node, Options) ->
false ->
?config(rmq_hostname, Config)
end,
TcpPort = get_node_config(Config, Node, tcp_port_amqp),
TcpPortName = proplists:get_value(tcp_port_name, Options, tcp_port_amqp),
TcpPort = get_node_config(Config, Node, TcpPortName),
UserPass = case proplists:get_value(with_user, Options, false) of
true ->
User = proplists:get_value(user, Options, "guest"),
Expand Down

0 comments on commit b3468c5

Please sign in to comment.