mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +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));
|
DEBUG(DEBUG_ERR, ("Unable to get reclock file from node %u\n", options.pnn));
|
||||||
return ret;
|
return ret;
|
||||||
} else {
|
} else {
|
||||||
if (reclock == NULL) {
|
if (options.machinereadable){
|
||||||
printf("No reclock file used.\n");
|
if (reclock != NULL) {
|
||||||
|
printf("%s", reclock);
|
||||||
|
}
|
||||||
} else {
|
} 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;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user