Bug 640: use net_kernel:hidden_connect_node() for nodetool

This commit is contained in:
Scott Fritchie 2010-08-18 16:49:51 -04:00
parent 3929c7564b
commit 89a4fe5012

View file

@ -10,10 +10,10 @@ main(Args) ->
{RestArgs, TargetNode} = process_args(Args, [], undefined),
%% See if the node is currently running -- if it's not, we'll bail
case net_adm:ping(TargetNode) of
pong ->
case {net_kernel:hidden_connect_node(TargetNode), net_adm:ping(TargetNode)} of
{true, pong} ->
ok;
pang ->
{_, pang} ->
io:format("Node ~p not responding to pings.\n", [TargetNode]),
halt(1)
end,