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