Fix user variables to properly evaluate.

This commit is contained in:
John Bellone 2014-04-28 20:30:36 -04:00 committed by John Bellone
parent a4de58b5f6
commit 7da7623d38
1 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,7 @@ import (
type Config struct { type Config struct {
common.PackerConfig `mapstructure:",squash"` common.PackerConfig `mapstructure:",squash"`
OutputPath string `mapstructure:"output_path"` OutputPath string `mapstructure:"output"`
tpl *packer.ConfigTemplate tpl *packer.ConfigTemplate
} }
@ -33,6 +33,7 @@ func (self *PostProcessor) Configure(raws ...interface{}) error {
if err != nil { if err != nil {
return err return err
} }
self.config.tpl.UserVars = self.config.PackerUserVars
templates := map[string]*string{ templates := map[string]*string{
"output_path": &self.config.OutputPath, "output_path": &self.config.OutputPath,