embed: load config defaults before loading config from file

release-3.1
Anthony Romano 2016-08-10 09:44:50 -07:00
parent 06e2338108
commit 6de993b468
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ func NewConfig() *Config {
}
func ConfigFromFile(path string) (*Config, error) {
cfg := &configYAML{}
cfg := &configYAML{Config: *NewConfig()}
if err := cfg.configFromFile(path); err != nil {
return nil, err
}