mirror of
https://github.com/minio/minio.git
synced 2025-01-23 12:43:16 -05:00
kms: KES client should return non-nil error when GenerateKey fails (#12290)
This commit fixes a bug in the KMS KES client integration. The client should return a non-nil error when the key generation fails. Signed-off-by: Andreas Auernhammer <aead@mail.de>
This commit is contained in:
parent
5c0a7189c7
commit
b989e5a514
@ -115,7 +115,7 @@ func (c *kesClient) GenerateKey(keyID string, ctx Context) (DEK, error) {
|
||||
}
|
||||
dek, err := c.client.GenerateKey(context.Background(), keyID, ctxBytes)
|
||||
if err != nil {
|
||||
return DEK{}, nil
|
||||
return DEK{}, err
|
||||
}
|
||||
return DEK{
|
||||
KeyID: keyID,
|
||||
|
Loading…
x
Reference in New Issue
Block a user