From 6213e569843f91ec95f8c9b6961520d7c3fd035d Mon Sep 17 00:00:00 2001 From: Mahmood Ali Date: Fri, 9 Nov 2018 13:51:19 -0500 Subject: [PATCH] round ttl duration for users --- nomad/vault.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nomad/vault.go b/nomad/vault.go index 6668c659918..64779837672 100644 --- a/nomad/vault.go +++ b/nomad/vault.go @@ -1236,7 +1236,7 @@ func (v *vaultClient) Stats() map[string]string { return map[string]string{ "tracked_for_revoked": strconv.Itoa(stat.TrackedForRevoke), - "token_ttl": stat.TokenTTL.String(), + "token_ttl": stat.TokenTTL.Round(time.Second).String(), "token_expire_time": expireTimeStr, } }