mirror of
https://github.com/hashicorp/vault.git
synced 2025-09-03 13:01:12 +02:00
Update commenting
This commit is contained in:
parent
5320da03bb
commit
cacf07210b
@ -626,6 +626,10 @@ func (m *ExpirationManager) Register(req *logical.Request, resp *logical.Respons
|
|||||||
leaseID := path.Join(req.Path, leaseUUID)
|
leaseID := path.Join(req.Path, leaseUUID)
|
||||||
|
|
||||||
defer func() {
|
defer func() {
|
||||||
|
// If there is an error we want to rollback as much as possible (note
|
||||||
|
// that errors here are ignored to do as much cleanup as we can). We
|
||||||
|
// want to revoke a generated secret (since an error means we may not
|
||||||
|
// be successfully tracking it), remove indexes, and delete the entry.
|
||||||
if retErr != nil {
|
if retErr != nil {
|
||||||
revResp, err := m.router.Route(logical.RevokeRequest(req.Path, resp.Secret, resp.Data))
|
revResp, err := m.router.Route(logical.RevokeRequest(req.Path, resp.Secret, resp.Data))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user