Skip to content

Commit

Permalink
+ added clean function stub so it can be used in Vault ENT (#23735)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcoulombe authored Oct 19, 2023
1 parent 07d72c8 commit f14e826
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions vault/logical_system.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ func NewSystemBackend(core *Core, logger log.Logger) *SystemBackend {

b.Backend.Invalidate = sysInvalidate(b)
b.Backend.InitializeFunc = sysInitialize(b)
b.Backend.Clean = sysClean(b)
return b
}

Expand Down
4 changes: 4 additions & 0 deletions vault/logical_system_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ var (
return nil
}

sysClean = func(b *SystemBackend) func(context.Context) {
return nil
}

getSystemSchemas = func() []func() *memdb.TableSchema { return nil }

getEGPListResponseKeyInfo = func(*SystemBackend, *namespace.Namespace) map[string]interface{} { return nil }
Expand Down

0 comments on commit f14e826

Please sign in to comment.