From 7da7623d3817a50fd4122044bcfe73379bca0b60 Mon Sep 17 00:00:00 2001 From: John Bellone Date: Mon, 28 Apr 2014 20:30:36 -0400 Subject: [PATCH] Fix user variables to properly evaluate. --- post-processor/compress/post-processor.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/post-processor/compress/post-processor.go b/post-processor/compress/post-processor.go index 54e2881ab..dc732a57a 100644 --- a/post-processor/compress/post-processor.go +++ b/post-processor/compress/post-processor.go @@ -14,7 +14,7 @@ import ( type Config struct { common.PackerConfig `mapstructure:",squash"` - OutputPath string `mapstructure:"output_path"` + OutputPath string `mapstructure:"output"` tpl *packer.ConfigTemplate } @@ -33,6 +33,7 @@ func (self *PostProcessor) Configure(raws ...interface{}) error { if err != nil { return err } + self.config.tpl.UserVars = self.config.PackerUserVars templates := map[string]*string{ "output_path": &self.config.OutputPath,