vault: Assign renew time

This commit is contained in:
Armon Dadgar 2015-03-13 11:37:07 -07:00
parent 9f0d59d03f
commit b96ac9f95f

View file

@ -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