tools/onnode: Fix healthy/ok node handling
commite8de58abd7fe7bec7752c6e33ea3e366d3c31a9d
authorMartin Schwenke <martin@meltin.net>
Thu, 24 Oct 2013 03:15:53 +0000 (24 14:15 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Tue, 29 Oct 2013 06:14:55 +0000 (29 17:14 +1100)
tree72c0d83375cb5de17b5ecbd6eb719fb7e6ac3dce
parentfc7f3358437b5b6d27b4e03ee477a9e7406b87e3
tools/onnode: Fix healthy/ok node handling

This bit-rotted a long time ago when the "ThisNode" column was added
to "ctdb -Y status" output.  The fake "ctdb -Y status" output in the
test was never updated to reflect this change.

Instead of making sure that all columns are "0", just check that
they're not "1".  This implicitly ignores "Y" and "N" in this
"ThisNode" column without having to do anything else clever.

Also update associated tests.  The main "ctdb ok" test had a duplicate
opening line for a here document, which was tickled by this change.

This fixes samba bz#8122.

Signed-off-by: Martin Schwenke <martin@meltin.net>
onnode test fixup

Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 01a46205c3a3d6609dc0b0324319b89667dffa32)
ctdb/tests/onnode/0070.sh
ctdb/tests/onnode/0071.sh
ctdb/tests/onnode/0075.sh
ctdb/tools/onnode