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; }