Browse Source

embed: load config defaults before loading config from file

Anthony Romano 9 years ago
parent
commit
6de993b468
1 changed files with 1 additions and 1 deletions
  1. 1 1
      embed/config.go

+ 1 - 1
embed/config.go

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