vault: Assign renew time
This commit is contained in:
parent
9f0d59d03f
commit
b96ac9f95f
|
@ -160,12 +160,14 @@ func (m *ExpirationManager) Register(req *logical.Request, resp *logical.Respons
|
|||
}
|
||||
|
||||
// Create a lease entry
|
||||
now := time.Now().UTC()
|
||||
le := leaseEntry{
|
||||
VaultID: path.Join(req.Path, generateUUID()),
|
||||
Path: req.Path,
|
||||
Data: resp.Data,
|
||||
Lease: resp.Lease,
|
||||
IssueTime: time.Now().UTC(),
|
||||
IssueTime: now,
|
||||
RenewTime: now,
|
||||
}
|
||||
|
||||
// Encode the entry
|
||||
|
|
Loading…
Reference in a new issue