From 610162b5f4a2809ffb123111dff566e6742f04df Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Tue, 8 Dec 2020 15:07:30 +0100 Subject: [PATCH] cleanup: return error type in genVolFromVolumeOptions() Signed-off-by: Niels de Vos --- internal/rbd/rbd_util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/rbd/rbd_util.go b/internal/rbd/rbd_util.go index 3a521caa5..2f1e458d8 100644 --- a/internal/rbd/rbd_util.go +++ b/internal/rbd/rbd_util.go @@ -828,7 +828,7 @@ func genVolFromVolumeOptions(ctx context.Context, volOptions, credentials map[st kmsID := volOptions["encryptionKMSID"] rbdVol.KMS, err = util.GetKMS(kmsID, credentials) if err != nil { - return nil, fmt.Errorf("invalid encryption kms configuration: %s", err) + return nil, fmt.Errorf("invalid encryption kms configuration: %w", err) } } }