diff --git a/plugin/src/main/java/org/elasticsearch/xpack/ml/action/DeleteModelSnapshotAction.java b/plugin/src/main/java/org/elasticsearch/xpack/ml/action/DeleteModelSnapshotAction.java index 50eeb34fa7f..095df5a2e6f 100644 --- a/plugin/src/main/java/org/elasticsearch/xpack/ml/action/DeleteModelSnapshotAction.java +++ b/plugin/src/main/java/org/elasticsearch/xpack/ml/action/DeleteModelSnapshotAction.java @@ -33,6 +33,7 @@ import org.elasticsearch.xpack.ml.job.persistence.JobProvider; import org.elasticsearch.xpack.ml.job.process.autodetect.state.ModelSnapshot; import org.elasticsearch.xpack.ml.notifications.Auditor; import org.elasticsearch.xpack.ml.utils.ExceptionsHelper; +import org.elasticsearch.xpack.security.InternalClient; import java.io.IOException; import java.util.Collections; @@ -130,7 +131,7 @@ public class DeleteModelSnapshotAction extends Action { - private final Client client; + private final InternalClient client; private final JobProvider jobProvider; private final JobManager jobManager; private final ClusterService clusterService; @@ -140,7 +141,7 @@ public class DeleteModelSnapshotAction extends Action