ctdb-tools: "ctdb nodestatus" should only display header for "all"
commit0089a4c4399964c97e10b9f17ac35648bb0627b1
authorMartin Schwenke <martin@meltin.net>
Wed, 24 May 2017 10:27:58 +0000 (24 20:27 +1000)
committerKarolin Seeger <kseeger@samba.org>
Tue, 30 May 2017 10:19:10 +0000 (30 12:19 +0200)
treea3b16b124ca523979baa7fead5ff6ee37ee52082
parent3c596dc4b98c5b391a34322e0d585ed3b4e7711b
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>
(cherry picked from commit 1d10c8e9e637619b754b4a273d3c714fbca7d503)
ctdb/tools/ctdb.c