Fix identity store 'key not found' response (#7267)

The existing custom response results in a 400 instead of the typical
404 which confuses the Terraform provider (and is inconsistent).
This commit is contained in:
Jim Kalafut 2019-08-07 09:46:45 -07:00 committed by GitHub
parent e1f8a82d81
commit 72a15422d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -518,7 +518,7 @@ func (i *IdentityStore) pathOIDCReadKey(ctx context.Context, req *logical.Reques
return nil, err
}
if entry == nil {
return logical.ErrorResponse("no named key found at %q", name), nil
return nil, nil
}
var storedNamedKey namedKey