onnode - Fix long standing bug in onnode healthy/ok/connected/con.
authorMartin Schwenke <martin@meltin.net>
Tue, 17 May 2011 03:18:11 +0000 (13:18 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 8 Jun 2011 04:21:20 +0000 (14:21 +1000)
When the output of "ctdb status -Y" changed to add an extra status
column we didn't fix onnode.

This adds a match for the extra column.

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

index fa61b47e5bd6f50c7a0f55bd142ebf3aacd917bc..264937ea6841a6b357b95c8af1c48c56adeb1481 100755 (executable)
@@ -139,10 +139,10 @@ get_nodes_with_status ()
     local bits
     case "$status" in
        healthy)
-           bits="0:0:0:0:0"
+           bits="0:0:0:0:0:0"
            ;;
        connected)
-           bits="0:[0-1]:[0-1]:[0-1]:[0-1]"
+           bits="0:[0-1]:[0-1]:[0-1]:[0-1]:[0-1]"
            ;;
        *)
            invalid_nodespec