mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
Add MetaData.clusterUUID to ClusterState.toXContent
The MetaData.clusterUUID is guaranteed to be unique across clusters and is handy (which may or may not have the same human readable cluster name). Closes #11832
This commit is contained in:
parent
b40186652c
commit
d12fb5f725
@ -417,7 +417,7 @@ public class ClusterState implements ToXContent, Diffable<ClusterState> {
|
||||
// meta data
|
||||
if (metrics.contains(Metric.METADATA)) {
|
||||
builder.startObject("metadata");
|
||||
|
||||
builder.field("cluster_uuid", metaData().clusterUUID());
|
||||
builder.startObject("templates");
|
||||
for (ObjectCursor<IndexTemplateMetaData> cursor : metaData().templates().values()) {
|
||||
IndexTemplateMetaData templateMetaData = cursor.value;
|
||||
|
Loading…
x
Reference in New Issue
Block a user