Commit d1b41f2f authored by Ben Langfeld's avatar Ben Langfeld

Pass export_options individually to VBoxManage export

parent 0332901f
...@@ -6,6 +6,7 @@ import ( ...@@ -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 { ...@@ -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 {
......
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