mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
Add a -Y machinereadable flag to "lvsmaster"
(This used to be ctdb commit bbae698656d5da9a4a5b0fbfc3003844f246d54b)
This commit is contained in:
parent
1ee122e165
commit
54a5e6c0c8
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user