Skip to content

Commit

Permalink
Allow deletes, to clean up accidentally past writes of the empty path
Browse files Browse the repository at this point in the history
  • Loading branch information
sgmiller committed May 11, 2020
1 parent 4e16030 commit bf13fdf
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions vault/logical_cubbyhole.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,6 @@ func (b *CubbyholeBackend) handleDelete(ctx context.Context, req *logical.Reques

path := data.Get("path").(string)

if path == "" {
return nil, fmt.Errorf("missing path")
}

// Delete the key at the request path
if err := req.Storage.Delete(ctx, req.ClientToken+"/"+path); err != nil {
return nil, err
Expand Down

0 comments on commit bf13fdf

Please sign in to comment.