mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-05 16:01:12 +01:00
Move the declaration to a OSS build tag file to not have it collide w… (#10750)
* Move the declaration to a OSS build tag file to not have it collide with ent declarations * Add comment * Remove comment to trigger ci
This commit is contained in:
parent
78022fc1fd
commit
a8519a8ebd
@ -3835,12 +3835,6 @@ func (b *SystemBackend) handleLeaderStatus(ctx context.Context, req *logical.Req
|
||||
return httpResp, nil
|
||||
}
|
||||
|
||||
func (b *SystemBackend) verifyDROperationToken(f framework.OperationFunc, lock bool) framework.OperationFunc {
|
||||
return func(ctx context.Context, req *logical.Request, d *framework.FieldData) (*logical.Response, error) {
|
||||
return f(ctx, req, d)
|
||||
}
|
||||
}
|
||||
|
||||
func sanitizePath(path string) string {
|
||||
if !strings.HasSuffix(path, "/") {
|
||||
path += "/"
|
||||
|
||||
16
vault/logical_system_util.go
Normal file
16
vault/logical_system_util.go
Normal file
@ -0,0 +1,16 @@
|
||||
// +build !enterprise
|
||||
|
||||
package vault
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/hashicorp/vault/sdk/framework"
|
||||
"github.com/hashicorp/vault/sdk/logical"
|
||||
)
|
||||
|
||||
func (b *SystemBackend) verifyDROperationToken(f framework.OperationFunc, lock bool) framework.OperationFunc {
|
||||
return func(ctx context.Context, req *logical.Request, d *framework.FieldData) (*logical.Response, error) {
|
||||
return f(ctx, req, d)
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user