onnode: Future-proof get_nodes_with_status().
authorMartin Schwenke <martin@meltin.net>
Tue, 17 May 2011 04:24:30 +0000 (14:24 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 8 Jun 2011 04:22:44 +0000 (14:22 +1000)
commit9051032bc1bdb1d26902800409a248c44836da58
treece7958aa5163234577df94bc710062b67eb88f06
parenta9caac9eeed27d6d5efd22926a962a25d1a5ef7f
onnode: Future-proof get_nodes_with_status().

The current code requires knowledge of the number of status bits
output by "ctdb status -Y".

This changes the code to be completely general.

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