fix type conversion in `UpdateKey` for Vault (#8058)

This commit fixes a type conversion in the `UpdateKey`
implementation of Vault.
master
Andreas Auernhammer 5 years ago committed by Nitish Tiwari
parent a0715f3b59
commit 35427a017d
  1. 2
      cmd/crypto/vault.go

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

Loading…
Cancel
Save