cleanup: return error type in ensureEncryptionMetadataSet()

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2020-12-08 15:10:58 +01:00 committed by mergify[bot]
parent d8e443ab49
commit f8ebc6aa3f

View File

@ -1196,7 +1196,7 @@ func (rv *rbdVolume) checkRbdImageEncrypted(ctx context.Context) (string, error)
func (rv *rbdVolume) ensureEncryptionMetadataSet(status string) error { func (rv *rbdVolume) ensureEncryptionMetadataSet(status string) error {
err := rv.SetMetadata(encryptionMetaKey, status) err := rv.SetMetadata(encryptionMetaKey, status)
if err != nil { if err != nil {
return fmt.Errorf("failed to save encryption status for %s: %v", rv, err) return fmt.Errorf("failed to save encryption status for %s: %w", rv, err)
} }
return nil return nil