Rename config lease_duration parameters to lease_ttl in line with current standardization efforts

This commit is contained in:
Jeff Mitchell
2015-08-27 07:50:16 -07:00
parent 866809b135
commit 4c5c82e6f7
10 changed files with 93 additions and 93 deletions

View File

@@ -125,15 +125,15 @@ func (c *ServerCommand) Run(args []string) int {
// Initialize the core
core, err := vault.NewCore(&vault.CoreConfig{
AdvertiseAddr: config.Backend.AdvertiseAddr,
Physical: backend,
AuditBackends: c.AuditBackends,
CredentialBackends: c.CredentialBackends,
LogicalBackends: c.LogicalBackends,
Logger: logger,
DisableMlock: config.DisableMlock,
MaxLeaseDuration: config.MaxLeaseDuration,
DefaultLeaseDuration: config.DefaultLeaseDuration,
AdvertiseAddr: config.Backend.AdvertiseAddr,
Physical: backend,
AuditBackends: c.AuditBackends,
CredentialBackends: c.CredentialBackends,
LogicalBackends: c.LogicalBackends,
Logger: logger,
DisableMlock: config.DisableMlock,
MaxLeaseTTL: config.MaxLeaseTTL,
DefaultLeaseTTL: config.DefaultLeaseTTL,
})
if err != nil {
c.Ui.Error(fmt.Sprintf("Error initializing core: %s", err))