Fix remove peers check (#10758)

This commit is contained in:
Vishal Nayak
2021-01-25 14:20:46 -05:00
committed by GitHub
parent d7bbc29c03
commit 7c1a73b6f3
2 changed files with 1 additions and 5 deletions

View File

@@ -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

View File

@@ -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.",
},
},