This commit is contained in:
Mitchell Hashimoto 2014-09-03 21:27:54 -07:00
parent dc74c2bbdd
commit 67afff5ede
4 changed files with 5 additions and 5 deletions

View File

@ -198,4 +198,4 @@ func (d *Player5Driver) DhcpLeasesPath(device string) string {
func (d *Player5Driver) VmnetnatConfPath() string {
return playerVmnetnatConfPath()
}
}

View File

@ -18,7 +18,7 @@ import (
// vmx_path string
type StepConfigureVMX struct {
CustomData map[string]string
SkipFloppy bool
SkipFloppy bool
}
func (s *StepConfigureVMX) Run(state multistep.StateBag) multistep.StepAction {
@ -58,7 +58,7 @@ func (s *StepConfigureVMX) Run(state multistep.StateBag) multistep.StepAction {
}
// Set a floppy disk, but only if we should
if ! s.SkipFloppy {
if !s.SkipFloppy {
// Set a floppy disk if we have one
if floppyPathRaw, ok := state.GetOk("floppy_path"); ok {
log.Println("Floppy path present, setting in VMX")

View File

@ -369,7 +369,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
&vmwcommon.StepCleanFiles{},
&vmwcommon.StepConfigureVMX{
CustomData: b.config.VMXDataPost,
SkipFloppy: true,
SkipFloppy: true,
},
&vmwcommon.StepCleanVMX{},
&vmwcommon.StepCompactDisk{

View File

@ -96,7 +96,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
&vmwcommon.StepCleanFiles{},
&vmwcommon.StepConfigureVMX{
CustomData: b.config.VMXDataPost,
SkipFloppy: true,
SkipFloppy: true,
},
&vmwcommon.StepCleanVMX{},
&vmwcommon.StepCompactDisk{