more consistent flag name
This commit is contained in:
parent
106408f6be
commit
07b013945f
|
@ -21,7 +21,7 @@ import (
|
|||
// <nothing>
|
||||
type StepCleanVMX struct {
|
||||
RemoveEthernetInterfaces bool
|
||||
SkipVNCDisable bool
|
||||
VNCEnabled bool
|
||||
}
|
||||
|
||||
func (s StepCleanVMX) Run(state multistep.StateBag) multistep.StepAction {
|
||||
|
@ -60,7 +60,7 @@ func (s StepCleanVMX) Run(state multistep.StateBag) multistep.StepAction {
|
|||
vmxData[ide+"clientdevice"] = "TRUE"
|
||||
}
|
||||
|
||||
if !s.SkipVNCDisable {
|
||||
if s.VNCEnabled {
|
||||
ui.Message("Disabling VNC server...")
|
||||
vmxData["remotedisplay.vnc.enabled"] = "FALSE"
|
||||
}
|
||||
|
|
|
@ -311,7 +311,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
|
|||
},
|
||||
&vmwcommon.StepCleanVMX{
|
||||
RemoveEthernetInterfaces: b.config.VMXConfig.VMXRemoveEthernet,
|
||||
SkipVNCDisable: b.config.DisableVNC,
|
||||
VNCEnabled: !b.config.DisableVNC,
|
||||
},
|
||||
&StepUploadVMX{
|
||||
RemoteType: b.config.RemoteType,
|
||||
|
|
|
@ -123,7 +123,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
|
|||
},
|
||||
&vmwcommon.StepCleanVMX{
|
||||
RemoveEthernetInterfaces: b.config.VMXConfig.VMXRemoveEthernet,
|
||||
SkipVNCDisable: b.config.DisableVNC,
|
||||
VNCEnabled: !b.config.DisableVNC,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue