From 8cf0e53b197daed3f525852eba48a2759469e4fa Mon Sep 17 00:00:00 2001 From: Ben Langfeld Date: Fri, 14 Mar 2014 13:22:32 -0300 Subject: [PATCH] Properly apply templates to export opts --- builder/virtualbox/common/export_opts.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builder/virtualbox/common/export_opts.go b/builder/virtualbox/common/export_opts.go index 4ae133dcd..36006aec6 100644 --- a/builder/virtualbox/common/export_opts.go +++ b/builder/virtualbox/common/export_opts.go @@ -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)) }