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"
|
"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 {
|
||||||
|
|
Loading…
Reference in New Issue