Przeglądaj źródła

Bug 640: use net_kernel:hidden_connect_node() for nodetool

Scott Fritchie 15 lat temu
rodzic
commit
89a4fe5012
1 zmienionych plików z 3 dodań i 3 usunięć
  1. +3
    -3
      priv/templates/simplenode.nodetool

+ 3
- 3
priv/templates/simplenode.nodetool Wyświetl plik

@ -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,

Ładowanie…
Anuluj
Zapisz