diff --git a/ctdb/tools/ctdb.c b/ctdb/tools/ctdb.c index 0b263f225e0..223be3f3c42 100644 --- a/ctdb/tools/ctdb.c +++ b/ctdb/tools/ctdb.c @@ -2529,10 +2529,16 @@ static int control_getreclock(struct ctdb_context *ctdb, int argc, const char ** DEBUG(DEBUG_ERR, ("Unable to get reclock file from node %u\n", options.pnn)); return ret; } else { - if (reclock == NULL) { - printf("No reclock file used.\n"); + if (options.machinereadable){ + if (reclock != NULL) { + printf("%s", reclock); + } } else { - printf("Reclock file:%s\n", reclock); + if (reclock == NULL) { + printf("No reclock file used.\n"); + } else { + printf("Reclock file:%s\n", reclock); + } } } return 0;