Commits

Scott Fritchie  committed 919051f

Bug 640: use net_kernel:hidden_connect_node() for nodetool

  • Participants
  • Parent commits a717892

Comments (0)

Files changed (1)

File rel/files/nodetool

     {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 -> 
+    net_kernel:hidden_connect_node(TargetNode),
+    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,