Fix remove peers check (#10758)
This commit is contained in:
parent
cbf38d8deb
commit
904bacd55e
|
@ -92,10 +92,6 @@ var (
|
|||
}
|
||||
|
||||
checkRaw = func(b *SystemBackend, path string) error { return nil }
|
||||
|
||||
wrapHandleRaftRemovePeer = func(b *SystemBackend) framework.OperationFunc {
|
||||
return b.handleRaftRemovePeerUpdate()
|
||||
}
|
||||
)
|
||||
|
||||
// tuneMount is used to set config on a mount point
|
||||
|
|
|
@ -82,7 +82,7 @@ func (b *SystemBackend) raftStoragePaths() []*framework.Path {
|
|||
|
||||
Operations: map[logical.Operation]framework.OperationHandler{
|
||||
logical.UpdateOperation: &framework.PathOperation{
|
||||
Callback: wrapHandleRaftRemovePeer(b),
|
||||
Callback: b.verifyDROperationToken(b.handleRaftRemovePeerUpdate(), false),
|
||||
Summary: "Remove a peer from the raft cluster.",
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue