mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
add machinereadable output for the ctdb getreclock command
(This used to be ctdb commit 5e7dc36f1649824db2f9dab34bede8b388502a57)
This commit is contained in:
parent
9add8cdc5a
commit
22dde50be3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user