Change variable name

Original commit: elastic/x-pack-elasticsearch@5576ec2196
This commit is contained in:
David Roberts 2017-02-07 17:16:45 +00:00
parent 3eec3ab42a
commit 639c02a45e
1 changed files with 2 additions and 2 deletions

View File

@ -31,12 +31,12 @@ public class RestUpdateModelSnapshotAction extends BaseRestHandler {
@Override
protected RestChannelConsumer prepareRequest(RestRequest restRequest, NodeClient client) throws IOException {
XContentParser parser = restRequest.contentParser();
UpdateModelSnapshotAction.Request getModelSnapshots = UpdateModelSnapshotAction.Request.parseRequest(
UpdateModelSnapshotAction.Request updateModelSnapshot = UpdateModelSnapshotAction.Request.parseRequest(
restRequest.param(Job.ID.getPreferredName()),
restRequest.param(ModelSnapshot.SNAPSHOT_ID.getPreferredName()),
parser);
return channel ->
client.execute(UpdateModelSnapshotAction.INSTANCE, getModelSnapshots, new RestStatusToXContentListener<>(channel));
client.execute(UpdateModelSnapshotAction.INSTANCE, updateModelSnapshot, new RestStatusToXContentListener<>(channel));
}
}