diff --git a/src/main/java/org/elasticsearch/license/plugin/action/get/GetLicenseRequest.java b/src/main/java/org/elasticsearch/license/plugin/action/get/GetLicenseRequest.java index 86674843d7a..e78fb7fdcfc 100644 --- a/src/main/java/org/elasticsearch/license/plugin/action/get/GetLicenseRequest.java +++ b/src/main/java/org/elasticsearch/license/plugin/action/get/GetLicenseRequest.java @@ -27,12 +27,12 @@ public class GetLicenseRequest extends MasterNodeReadOperationRequest overrideParams = ImmutableMap.of(ESLicenses.OMIT_SIGNATURE, "true"); final ToXContent.Params params = new ToXContent.DelegatingMapParams(overrideParams, request); - client.admin().cluster().execute(GetLicenseAction.INSTANCE, new GetLicenseRequest(), new RestBuilderListener(channel) { + GetLicenseRequest getLicenseRequest = new GetLicenseRequest(); + getLicenseRequest.local(request.paramAsBoolean("local", getLicenseRequest.local())); + client.admin().cluster().execute(GetLicenseAction.INSTANCE, getLicenseRequest, new RestBuilderListener(channel) { @Override public RestResponse buildResponse(GetLicenseResponse response, XContentBuilder builder) throws Exception { ESLicenses.toXContent(response.licenses(), builder, params);