tools/onnode: Fix healthy/ok node handling
[ctdb.git] / tools / onnode
index 11ad70869321ca404c13b07148077bc2191b13da..0abc13636ef663f0157710f16a88c9282a9c1b34 100755 (executable)
@@ -165,10 +165,10 @@ get_nodes_with_status ()
 
            case "$status" in
                healthy)
-                   # If any bit is not 0, don't match this address.
+                   # If any bit is 1, don't match this address.
                    local s
                    for s ; do
-                       [ "$s" = "0" ] || continue 2
+                       [ "$s" != "1" ] || continue 2
                    done
                    ;;
                connected)