Merge pull request #1733 from hashicorp/f-vault-renew-root
Renew root tokens where applicable
This commit is contained in:
commit
d810e1c432
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue