mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 11:00:25 +00:00
cleanup: return error type in genVolFromVolumeOptions()
Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
729e2419ef
commit
610162b5f4
@ -828,7 +828,7 @@ func genVolFromVolumeOptions(ctx context.Context, volOptions, credentials map[st
|
|||||||
kmsID := volOptions["encryptionKMSID"]
|
kmsID := volOptions["encryptionKMSID"]
|
||||||
rbdVol.KMS, err = util.GetKMS(kmsID, credentials)
|
rbdVol.KMS, err = util.GetKMS(kmsID, credentials)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("invalid encryption kms configuration: %s", err)
|
return nil, fmt.Errorf("invalid encryption kms configuration: %w", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user