Skip to content

Commit ca468f0

Browse files
authored
Fix main response to return build flavor (elastic#97857)
Build flavor was added back in elastic#97770, but the main endpoint response is still hardcoded to "default". This commit updates the response to return the flavor from the build info.
1 parent 57e3f0f commit ca468f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/rest-root/src/main/java/org/elasticsearch/rest/root/MainResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws
131131
builder.field("cluster_uuid", clusterUuid);
132132
builder.startObject("version")
133133
.field("number", build.qualifiedVersion())
134-
.field("build_flavor", "default")
134+
.field("build_flavor", build.flavor())
135135
.field("build_type", build.type().displayName())
136136
.field("build_hash", build.hash())
137137
.field("build_date", build.date())

0 commit comments

Comments
 (0)