ctdb-tools: "ctdb nodestatus" should only display header for "all"
authorMartin Schwenke <martin@meltin.net>
Wed, 24 May 2017 10:27:58 +0000 (20:27 +1000)
committerMartin Schwenke <martins@samba.org>
Thu, 25 May 2017 23:14:17 +0000 (01:14 +0200)
commit1d10c8e9e637619b754b4a273d3c714fbca7d503
tree5efbc24ff886dd0c63ad9cd8006321d3679efab0
parenta600d467e2842ab05e429c5a67be5b222ddd1c12
ctdb-tools: "ctdb nodestatus" should only display header for "all"

The "Number of nodes:" header should only be displayed when "all" is
specified.  This is how the command behaved in Samba <= 4.4.

Printing the number of nodes is not helpful and is rather confusing in
the default case where only the status of the current node is printed.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12802

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tools/ctdb.c