Do not emit error on auth not found (#2737)

pull/2744/head
Irena Rindos 3 years ago committed by GitHub
parent ff8f1be0a1
commit 895aecb58c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -876,7 +876,7 @@ func (r *WorkerAuthRepositoryStorage) validateWorkerAuths(ctx context.Context, w
workerAuthsFound := len(workerAuths)
switch {
case workerAuthsFound == 0:
return nil, errors.New(ctx, errors.RecordNotFound, op, "did not find worker auth records for worker")
return nil, errors.New(ctx, errors.RecordNotFound, op, "did not find worker auth records for worker", errors.WithoutEvent())
case workerAuthsFound == 1:
if workerAuths[0].State != currentWorkerAuthState {
return nil, errors.New(ctx, errors.NotSpecificIntegrity, op,

Loading…
Cancel
Save