mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-09 00:33:28 -04:00
Merge pull request #1403 from hashicorp/fix-mount-tune
Fix mount tune bounds checking
This commit is contained in:
commit
5a45fdc99d
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ func (b *SystemBackend) tuneMountTTLs(path string, meConfig *MountConfig, newDef
|
|||
int(newDefault.Seconds()), int(b.Core.maxLeaseTTL.Seconds()))
|
||||
}
|
||||
} else {
|
||||
if meConfig.MaxLeaseTTL < *newDefault {
|
||||
if newMax == nil && *newDefault > meConfig.MaxLeaseTTL {
|
||||
return fmt.Errorf("new backend default lease TTL of %d greater than backend max lease TTL of %d",
|
||||
int(newDefault.Seconds()), int(meConfig.MaxLeaseTTL.Seconds()))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue