Merge pull request #1733 from hashicorp/f-vault-renew-root

Renew root tokens where applicable
This commit is contained in:
Alex Dadgar
2016-09-21 17:00:09 -07:00
committed by GitHub

View File

@@ -331,7 +331,7 @@ OUTER:
v.client.SetWrappingLookupFunc(v.getWrappingFn())
// If we are given a non-root token, start renewing it
if v.tokenData.Root {
if v.tokenData.Root && v.tokenData.CreationTTL == 0 {
v.logger.Printf("[DEBUG] vault: not renewing token as it is root")
} else {
v.logger.Printf("[DEBUG] vault: token lease duration is %v",