Pass export_options individually to VBoxManage export
This commit is contained in:
parent
0332901f63
commit
d1b41f2f14
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue