diff --git a/builder/vsphere/iso/builder.go b/builder/vsphere/iso/builder.go index 49b96cae1..d35a9e3e3 100644 --- a/builder/vsphere/iso/builder.go +++ b/builder/vsphere/iso/builder.go @@ -121,7 +121,7 @@ func (b *Builder) Run(ctx context.Context, ui packer.Ui, hook packer.Hook) (pack } steps = append(steps, - &StepRemoveCDRom{ + &StepRemoveCDRom{ Config: &b.config.RemoveCDRomConfig, }, &common.StepCreateSnapshot{ diff --git a/builder/vsphere/iso/config.go b/builder/vsphere/iso/config.go index 991827c94..63a4eb476 100644 --- a/builder/vsphere/iso/config.go +++ b/builder/vsphere/iso/config.go @@ -24,7 +24,7 @@ type Config struct { packerCommon.ISOConfig `mapstructure:",squash"` CDRomConfig `mapstructure:",squash"` - RemoveCDRomConfig `mapstructure:",squash"` + RemoveCDRomConfig `mapstructure:",squash"` FloppyConfig `mapstructure:",squash"` common.RunConfig `mapstructure:",squash"` BootConfig `mapstructure:",squash"` diff --git a/builder/vsphere/iso/step_remove_cdrom.go b/builder/vsphere/iso/step_remove_cdrom.go index afc09344e..9fd3075a4 100644 --- a/builder/vsphere/iso/step_remove_cdrom.go +++ b/builder/vsphere/iso/step_remove_cdrom.go @@ -26,7 +26,7 @@ func (s *StepRemoveCDRom) Run(_ context.Context, state multistep.StateBag) multi return multistep.ActionHalt } - if s.Config.RemoveCdrom == true { + if s.Config.RemoveCdrom == true { ui.Say("Deleting CD-ROM drives...") err := vm.RemoveCdroms() if err != nil { @@ -35,7 +35,7 @@ func (s *StepRemoveCDRom) Run(_ context.Context, state multistep.StateBag) multi } } - return multistep.ActionContinue + return multistep.ActionContinue } func (s *StepRemoveCDRom) Cleanup(state multistep.StateBag) {}