cleanup: return error type in genVolFromVolumeOptions()

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2020-12-08 15:07:30 +01:00 committed by mergify[bot]
parent 729e2419ef
commit 610162b5f4

View File

@ -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)
}
}
}