onnode: Be defensive when listing IPs of nodes with designated status.
authorMartin Schwenke <martin@meltin.net>
Tue, 17 May 2011 03:20:51 +0000 (13:20 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 8 Jun 2011 04:21:48 +0000 (14:21 +1000)
commit19a41fdc40fada29046d102de34d6fbe0c7a3768
treece6a68f6021eb0ff3f7db7b1a0f0a2db979d012c
parent8df10dfdbd9b19514caadf236c34eadcb07419f7
onnode: Be defensive when listing IPs of nodes with designated status.

The current version gives the last item left after stripping the known
fields.  If an insufficent number of status fields is stripped then
this would return a residual status field value, which turned out to
be a valid IP address for localhost...  so no error occurs.

This change means that the node number is stripped and any residual
status field value will stay appended, causing an error the first time
this command is tested.

Signed-off-by: Martin Schwenke <martin@meltin.net>
tools/onnode