diff options
author | Scott Fritchie <scott@basho.com> | 2010-08-18 16:49:51 -0400 |
---|---|---|
committer | Scott Fritchie <scott@basho.com> | 2010-08-18 16:49:51 -0400 |
commit | 89a4fe5012c4e6ccdf0a428bada1bbf419296f72 (patch) | |
tree | 51f528639235db9e4d226e3bf48b54437c7b04f2 /priv | |
parent | 3929c7564b812e2574518ffe7ed7a59019616239 (diff) |
Bug 640: use net_kernel:hidden_connect_node() for nodetool
Diffstat (limited to 'priv')
-rw-r--r-- | priv/templates/simplenode.nodetool | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/priv/templates/simplenode.nodetool b/priv/templates/simplenode.nodetool index 8afc167..971f983 100644 --- a/priv/templates/simplenode.nodetool +++ b/priv/templates/simplenode.nodetool @@ -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, |