vault: ignore backends that don't support rollback

This commit is contained in:
Mitchell Hashimoto 2015-03-17 16:24:42 -07:00
parent e078b957d4
commit 97dab0c285
1 changed files with 6 additions and 0 deletions

View File

@ -99,6 +99,12 @@ func (m *RollbackManager) rollback(path string, state *uint32) {
Path: path,
}
if _, err := m.Router.Route(req); err != nil {
// If the error is an unsupported operation, then it doesn't
// matter, the backend doesn't support it.
if err == logical.ErrUnsupportedOperation {
return
}
m.Logger.Printf(
"[ERR] rollback: error rolling back %s: %s",
path, err)