fix swallowed error in vault package. (#2993)

This commit is contained in:
Lars Lehtonen 2017-07-26 09:15:54 -07:00 committed by Jeff Mitchell
parent 7c761b8414
commit b851d88d68
1 changed files with 6 additions and 0 deletions

View File

@ -1313,6 +1313,12 @@ func (ts *TokenStore) handleTidy(req *logical.Request, data *framework.FieldData
continue
}
te, err := ts.lookupSalted(saltedId, true)
if err != nil {
tidyErrors = multierror.Append(tidyErrors, fmt.Errorf("failed to lookup tainted ID: %v", err))
lock.RUnlock()
continue
}
lock.RUnlock()
// If token entry is not found assume that the token is not valid any