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:
Vishal Nayak 2021-01-25 09:35:19 -05:00 committed by GitHub
parent 78022fc1fd
commit a8519a8ebd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 6 deletions

View File

@ -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 += "/"

View 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)
}
}