mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-28 04:10:44 -04:00
Fix issue deleting DB connections on Secondaries (#7853)
This commit is contained in:
parent
42ec7fbd4e
commit
033c29a26c
1 changed files with 2 additions and 1 deletions
|
|
@ -8,6 +8,7 @@ import (
|
|||
"strings"
|
||||
|
||||
"github.com/fatih/structs"
|
||||
"github.com/hashicorp/errwrap"
|
||||
uuid "github.com/hashicorp/go-uuid"
|
||||
"github.com/hashicorp/vault/sdk/database/dbplugin"
|
||||
"github.com/hashicorp/vault/sdk/framework"
|
||||
|
|
@ -217,7 +218,7 @@ func (b *databaseBackend) connectionDeleteHandler() framework.OperationFunc {
|
|||
|
||||
err := req.Storage.Delete(ctx, fmt.Sprintf("config/%s", name))
|
||||
if err != nil {
|
||||
return nil, errors.New("failed to delete connection configuration")
|
||||
return nil, errwrap.Wrapf("failed to delete connection configuration: {{err}}", err)
|
||||
}
|
||||
|
||||
if err := b.ClearConnection(name); err != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue