fix type conversion in UpdateKey for Vault (#8058)

This commit fixes a type conversion in the `UpdateKey`
implementation of Vault.
This commit is contained in:
Andreas Auernhammer 2019-08-11 18:50:25 +02:00 committed by Nitish Tiwari
parent a0715f3b59
commit 35427a017d

View File

@ -274,6 +274,6 @@ func (v *vaultService) UpdateKey(keyID string, sealedKey []byte, ctx Context) (r
if !ok {
return nil, errMissingUpdatedKey
}
rotatedKey = ciphertext.([]byte)
rotatedKey = []byte(ciphertext.(string))
return rotatedKey, nil
}