From 9c7b4b63c5c585bdc34ccd5c27e2bca14a8dd49e Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 29 May 2015 09:19:20 -0700 Subject: [PATCH] builder/docker: fix config parsing --- builder/docker/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builder/docker/config.go b/builder/docker/config.go index e261068df..4fc6f762a 100644 --- a/builder/docker/config.go +++ b/builder/docker/config.go @@ -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 }