1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

Add a -Y machinereadable flag to "lvsmaster"

(This used to be ctdb commit bbae698656d5da9a4a5b0fbfc3003844f246d54b)
This commit is contained in:
Ronnie Sahlberg 2009-05-11 14:44:59 +10:00
parent 1ee122e165
commit 54a5e6c0c8

View File

@ -1876,7 +1876,11 @@ static int control_lvsmaster(struct ctdb_context *ctdb, int argc, const char **a
}
}
if (options.machinereadable){
printf("%d\n", i);
} else {
printf("Node %d is LVS master\n", i);
}
return 0;
}