builder/null: fix config parsing

This commit is contained in:
Mitchell Hashimoto 2015-06-13 14:07:43 -04:00
parent 1b0f2b4723
commit f1cef0baae
1 changed files with 4 additions and 3 deletions

View File

@ -2,6 +2,7 @@ package null
import (
"fmt"
"github.com/mitchellh/packer/common"
"github.com/mitchellh/packer/helper/config"
"github.com/mitchellh/packer/packer"
@ -19,9 +20,9 @@ type Config struct {
}
func NewConfig(raws ...interface{}) (*Config, []string, error) {
c := new(Config)
var c Config
err := config.Decode(c, &config.DecodeOpts{
err := config.Decode(&c, &config.DecodeOpts{
Interpolate: true,
InterpolateFilter: &interpolate.RenderFilter{
Exclude: []string{
@ -62,5 +63,5 @@ func NewConfig(raws ...interface{}) (*Config, []string, error) {
return nil, nil, errs
}
return c, nil, nil
return &c, nil, nil
}