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