[ML] Using mlClient callAsInternalUser in job validation (#67609)
This commit is contained in:
parent
321a10d1df
commit
cae6b9e35a
1 changed files with 2 additions and 2 deletions
|
@ -66,7 +66,7 @@ export function jobValidationRoutes({ router, mlLicense }: RouteInitialization,
|
|||
let errorResp;
|
||||
const resp = await estimateBucketSpanFactory(
|
||||
context.ml!.mlClient.callAsCurrentUser,
|
||||
context.core.elasticsearch.legacy.client.callAsInternalUser,
|
||||
context.ml!.mlClient.callAsInternalUser,
|
||||
mlLicense.isSecurityEnabled() === false
|
||||
)(request.body)
|
||||
// this catch gets triggered when the estimation code runs without error
|
||||
|
@ -187,7 +187,7 @@ export function jobValidationRoutes({ router, mlLicense }: RouteInitialization,
|
|||
context.ml!.mlClient.callAsCurrentUser,
|
||||
request.body,
|
||||
version,
|
||||
context.core.elasticsearch.legacy.client.callAsInternalUser,
|
||||
context.ml!.mlClient.callAsInternalUser,
|
||||
mlLicense.isSecurityEnabled() === false
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue