basho/riak — Issue #124: Missing case clause for nodetool ping
Author: jaredmorrow
Created: 2012-03-09 15:48:30+00:00
State: open
Labels: Bug

[This case clause](https://github.com/basho/riak/blob/master/rel/files/nodetool#L40) matches against both `net_kernel:hidden_connect_node(TargetNode)` and `net_adm:ping(TargetNode)` being true, or `net_adm:ping(TargetNode)` being false. It is missing the case of `net_kernel:hidden_connect_node(TargetNode)` being false and `net_adm:ping(TargetNode)` being true.

This missing clause will show up as

```text
# riak ping
Attempting to restart script through sudo -u riak
escript: exception error: no case clause matching {false,pong}
```

on the command line.