mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-09 00:33:28 -04:00
parent
b519659cf6
commit
d95c4b615b
1 changed files with 4 additions and 0 deletions
|
|
@ -89,6 +89,10 @@ func (v *BarrierView) Get(ctx context.Context, key string) (*logical.StorageEntr
|
|||
|
||||
// logical.Storage impl.
|
||||
func (v *BarrierView) Put(ctx context.Context, entry *logical.StorageEntry) error {
|
||||
if entry == nil {
|
||||
return errors.New("cannot write nil entry")
|
||||
}
|
||||
|
||||
if err := v.sanityCheck(entry.Key); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue