Skip to content

Commit

Permalink
Troubleshooting.
Browse files Browse the repository at this point in the history
Signed-off-by: AWSHurneyt <[email protected]>
  • Loading branch information
AWSHurneyt committed Oct 4, 2023
1 parent aa65bea commit de71b69
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class GetRemoteIndexesResponse : ActionResponse, ToXContentObject {
override fun toXContent(builder: XContentBuilder, params: ToXContent.Params): XContentBuilder {
builder.startObject()
clusterIndexes.forEach {
builder.field(it.clusterName, it.toXContent(builder, params))
it.toXContent(builder, params)
}
return builder.endObject()
}
Expand All @@ -61,14 +61,14 @@ class GetRemoteIndexesResponse : ActionResponse, ToXContentObject {
)

override fun toXContent(builder: XContentBuilder, params: ToXContent.Params): XContentBuilder {
builder.startObject()
builder.startObject(clusterName)
builder.field(CLUSTER_NAME_FIELD, clusterName)
builder.field(CLUSTER_HEALTH_FIELD, clusterHealth)
builder.field(HUB_CLUSTER_FIELD, hubCluster)
builder.field(INDEX_LATENCY_FIELD, latency)
builder.startObject(INDEXES_FIELD)
indexes.forEach {
builder.field(it.indexName, it.toXContent(builder, params))
it.toXContent(builder, params)
}
return builder.endObject().endObject()
}
Expand Down Expand Up @@ -108,7 +108,7 @@ class GetRemoteIndexesResponse : ActionResponse, ToXContentObject {
)

override fun toXContent(builder: XContentBuilder, params: ToXContent.Params): XContentBuilder {
builder.startObject()
builder.startObject(indexName)
builder.field(INDEX_NAME_FIELD, indexName)
builder.field(INDEX_HEALTH_FIELD, indexHealth)
if (mappings == null) builder.startObject(GetRemoteIndexesMappingsResponse.MAPPINGS_FIELD).endObject()
Expand Down

0 comments on commit de71b69

Please sign in to comment.