Fix remove peers check (#10758)

This commit is contained in:
Vishal Nayak 2021-01-25 14:20:46 -05:00 committed by GitHub
parent cbf38d8deb
commit 904bacd55e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.",
},
},