From 54a5e6c0c88ca6369474d85ef41c5ad1f1f455ae Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Mon, 11 May 2009 14:44:59 +1000 Subject: [PATCH] Add a -Y machinereadable flag to "lvsmaster" (This used to be ctdb commit bbae698656d5da9a4a5b0fbfc3003844f246d54b) --- ctdb/tools/ctdb.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ctdb/tools/ctdb.c b/ctdb/tools/ctdb.c index 44c8d074b58..ab631f85e0a 100644 --- a/ctdb/tools/ctdb.c +++ b/ctdb/tools/ctdb.c @@ -1876,7 +1876,11 @@ static int control_lvsmaster(struct ctdb_context *ctdb, int argc, const char **a } } - printf("Node %d is LVS master\n", i); + if (options.machinereadable){ + printf("%d\n", i); + } else { + printf("Node %d is LVS master\n", i); + } return 0; }