Do not emit error on auth not found (#2737)
This commit is contained in:
1 parent
ff8f1be0a1
commit
895aecb58c
1 file changed
+1
-1
@@ -876,7 +876,7 @@ func (r *WorkerAuthRepositoryStorage) validateWorkerAuths(ctx context.Context, w
|
|||||||
workerAuthsFound := len(workerAuths)
|
workerAuthsFound := len(workerAuths)
|
||||||
switch {
|
switch {
|
||||||
case workerAuthsFound == 0:
|
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:
|
case workerAuthsFound == 1:
|
||||||
if workerAuths[0].State != currentWorkerAuthState {
|
if workerAuths[0].State != currentWorkerAuthState {
|
||||||
return nil, errors.New(ctx, errors.NotSpecificIntegrity, op,
|
return nil, errors.New(ctx, errors.NotSpecificIntegrity, op,
|
||||||
|
|||||||
Reference in new issue
Block a user