fmt
This commit is contained in:
parent
dc74c2bbdd
commit
67afff5ede
|
@ -198,4 +198,4 @@ func (d *Player5Driver) DhcpLeasesPath(device string) string {
|
|||
|
||||
func (d *Player5Driver) VmnetnatConfPath() string {
|
||||
return playerVmnetnatConfPath()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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{
|
||||
|
|
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue