Skip to content

Commit

Permalink
Fix BwC Bug in Converting GetSnapshotsRequest
Browse files Browse the repository at this point in the history
Follow-up to elastic#74676 where I missed a spot in request conversions.
  • Loading branch information
original-brownbear committed Jun 29, 2021
1 parent f21fad6 commit a8ec82c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ static Request cloneSnapshot(CloneSnapshotRequest cloneSnapshotRequest) throws I

static Request getSnapshots(GetSnapshotsRequest getSnapshotsRequest) {
RequestConverters.EndpointBuilder endpointBuilder = new RequestConverters.EndpointBuilder().addPathPartAsIs("_snapshot")
.addPathPart(getSnapshotsRequest.repository());
.addCommaSeparatedPathParts(getSnapshotsRequest.repositories());
String endpoint;
if (getSnapshotsRequest.snapshots().length == 0) {
endpoint = endpointBuilder.addPathPart("_all").build();
Expand Down

0 comments on commit a8ec82c

Please sign in to comment.