mirror of
https://github.com/correl/rebar.git
synced 2024-11-23 19:19:54 +00:00
Bug 640: use net_kernel:hidden_connect_node() for nodetool
This commit is contained in:
parent
3929c7564b
commit
89a4fe5012
1 changed files with 3 additions and 3 deletions
|
@ -10,10 +10,10 @@ main(Args) ->
|
||||||
{RestArgs, TargetNode} = process_args(Args, [], undefined),
|
{RestArgs, TargetNode} = process_args(Args, [], undefined),
|
||||||
|
|
||||||
%% See if the node is currently running -- if it's not, we'll bail
|
%% See if the node is currently running -- if it's not, we'll bail
|
||||||
case net_adm:ping(TargetNode) of
|
case {net_kernel:hidden_connect_node(TargetNode), net_adm:ping(TargetNode)} of
|
||||||
pong ->
|
{true, pong} ->
|
||||||
ok;
|
ok;
|
||||||
pang ->
|
{_, pang} ->
|
||||||
io:format("Node ~p not responding to pings.\n", [TargetNode]),
|
io:format("Node ~p not responding to pings.\n", [TargetNode]),
|
||||||
halt(1)
|
halt(1)
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Reference in a new issue