Update commenting

This commit is contained in:
Jeff Mitchell 2017-05-04 11:54:57 -04:00
parent 5320da03bb
commit cacf07210b

View File

@ -626,6 +626,10 @@ func (m *ExpirationManager) Register(req *logical.Request, resp *logical.Respons
leaseID := path.Join(req.Path, leaseUUID)
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 {
revResp, err := m.router.Route(logical.RevokeRequest(req.Path, resp.Secret, resp.Data))
if err != nil {