Skip to content

Commit b4f28d4

Browse files
Fix BwC Bug in Converting GetSnapshotsRequest (#74696)
Follow-up to #74676 where I missed a spot in request conversions.
1 parent 958891e commit b4f28d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/rest-high-level/src/main/java/org/elasticsearch/client/SnapshotRequestConverters.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ static Request cloneSnapshot(CloneSnapshotRequest cloneSnapshotRequest) throws I
130130

131131
static Request getSnapshots(GetSnapshotsRequest getSnapshotsRequest) {
132132
RequestConverters.EndpointBuilder endpointBuilder = new RequestConverters.EndpointBuilder().addPathPartAsIs("_snapshot")
133-
.addPathPart(getSnapshotsRequest.repository());
133+
.addCommaSeparatedPathParts(getSnapshotsRequest.repositories());
134134
String endpoint;
135135
if (getSnapshotsRequest.snapshots().length == 0) {
136136
endpoint = endpointBuilder.addPathPart("_all").build();

0 commit comments

Comments
 (0)