mirror of
https://github.com/hashicorp/packer.git
synced 2026-06-11 09:40:17 -04:00
Properly apply templates to export opts
This commit is contained in:
parent
2cee7a5c10
commit
8cf0e53b19
1 changed files with 2 additions and 2 deletions
|
|
@ -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))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue