mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-05 04:16:31 +02:00
Fix issue deleting DB connections on Secondaries (#7853)
This commit is contained in:
parent
42ec7fbd4e
commit
033c29a26c
@ -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…
x
Reference in New Issue
Block a user