From b96ac9f95f45d1f755a054a188efa29324f0491d Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Fri, 13 Mar 2015 11:37:07 -0700 Subject: [PATCH] vault: Assign renew time --- vault/expiration.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vault/expiration.go b/vault/expiration.go index b6415e6cf..bffa0d22e 100644 --- a/vault/expiration.go +++ b/vault/expiration.go @@ -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