Pass export_options individually to VBoxManage export

This commit is contained in:
Ben Langfeld 2014-03-13 23:33:35 -03:00
parent 0332901f63
commit d1b41f2f14
1 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,7 @@ import (
"github.com/mitchellh/packer/packer"
"log"
"path/filepath"
"strings"
"time"
)
@ -51,9 +52,10 @@ func (s *StepExport) Run(state multistep.StateBag) multistep.StepAction {
vmName,
"--output",
outputPath,
s.ExportOpts,
}
command = append(command, strings.Fields(s.ExportOpts)...)
ui.Say("Exporting virtual machine...")
err := driver.VBoxManage(command...)
if err != nil {