Port some changes back to OSS (#8359)

This commit is contained in:
Brian Kassouf
2020-02-14 16:39:13 -08:00
committed by GitHub
parent f54fd9eefc
commit 317bf94c7a
12 changed files with 181 additions and 33 deletions

View File

@@ -25,6 +25,8 @@ const (
// Config is the configuration for the vault server.
type Config struct {
entConfig
Listeners []*Listener `hcl:"-"`
Storage *Storage `hcl:"-"`
HAStorage *Storage `hcl:"-"`
@@ -641,6 +643,11 @@ func ParseConfig(d string) (*Config, error) {
}
}
entConfig := &(result.entConfig)
if err := entConfig.parseConfig(list); err != nil {
return nil, errwrap.Wrapf("error parsing enterprise config: {{err}}", err)
}
return &result, nil
}