mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-08 16:24:51 -04:00
parent
95978c208f
commit
edf4f7a5e0
1 changed files with 4 additions and 0 deletions
|
|
@ -53,6 +53,10 @@ func (b *backend) pathTidyWrite(ctx context.Context, req *logical.Request, d *fr
|
|||
tidyCertStore := d.Get("tidy_cert_store").(bool)
|
||||
tidyRevocationList := d.Get("tidy_revocation_list").(bool)
|
||||
|
||||
if safetyBuffer < 1 {
|
||||
return logical.ErrorResponse("safety_buffer must be greater than zero"), nil
|
||||
}
|
||||
|
||||
bufferDuration := time.Duration(safetyBuffer) * time.Second
|
||||
|
||||
var resp *logical.Response
|
||||
|
|
|
|||
Loading…
Reference in a new issue