mirror of
https://github.com/minio/minio.git
synced 2026-11-17 14:56:19 +00: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:
1 parent
5c0a7189c7
commit
b989e5a514
1 file changed
+1
-1
+1
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user