builder/docker: fix config parsing

This commit is contained in:
Mitchell Hashimoto 2015-05-29 09:19:20 -07:00
parent 7bbb940896
commit 9c7b4b63c5
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ type Config struct {
}
func NewConfig(raws ...interface{}) (*Config, []string, error) {
c := new(Config)
var c Config
var md mapstructure.Metadata
err := config.Decode(&c, &config.DecodeOpts{
@ -83,5 +83,5 @@ func NewConfig(raws ...interface{}) (*Config, []string, error) {
return nil, nil, errs
}
return c, nil, nil
return &c, nil, nil
}