Commit 9c7b4b63 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/docker: fix config parsing

parent 7bbb9408
...@@ -30,7 +30,7 @@ type Config struct { ...@@ -30,7 +30,7 @@ type Config struct {
} }
func NewConfig(raws ...interface{}) (*Config, []string, error) { func NewConfig(raws ...interface{}) (*Config, []string, error) {
c := new(Config) var c Config
var md mapstructure.Metadata var md mapstructure.Metadata
err := config.Decode(&c, &config.DecodeOpts{ err := config.Decode(&c, &config.DecodeOpts{
...@@ -83,5 +83,5 @@ func NewConfig(raws ...interface{}) (*Config, []string, error) { ...@@ -83,5 +83,5 @@ func NewConfig(raws ...interface{}) (*Config, []string, error) {
return nil, nil, errs return nil, nil, errs
} }
return c, nil, nil return &c, nil, nil
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment