Commit 8cf0e53b authored by Ben Langfeld's avatar Ben Langfeld

Properly apply templates to export opts

parent 2cee7a5c
......@@ -15,9 +15,9 @@ func (c *ExportOpts) Prepare(t *packer.ConfigTemplate) []error {
}
errs := make([]error, 0)
for _, str := range c.ExportOpts {
for i, str := range c.ExportOpts {
var err error
str, err = t.Process(str, nil)
c.ExportOpts[i], err = t.Process(str, nil)
if err != nil {
errs = append(errs, fmt.Errorf("Error processing %s: %s", "export_opts", err))
}
......
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