capitalization

This commit is contained in:
Megan Marsh 2020-09-14 10:40:07 -07:00
parent b73825bb72
commit a92491d17b
4 changed files with 5 additions and 5 deletions

View File

@ -13,7 +13,7 @@ import (
// This step attaches the boot ISO, cd_files iso, and guest additions to the
// virtual machine, if present.
type StepAttachISOs struct {
AttachBootIso bool
AttachBootISO bool
ISOInterface string
GuestAdditionsMode string
GuestAdditionsInterface string
@ -28,7 +28,7 @@ func (s *StepAttachISOs) Run(ctx context.Context, state multistep.StateBag) mult
diskMountMap := map[string]string{}
s.diskUnmountCommands = map[string][]string{}
// Track the bootable iso (only used in virtualbox-iso builder. )
if s.AttachBootIso {
if s.AttachBootISO {
isoPath := state.Get("iso_path").(string)
diskMountMap["boot_iso"] = isoPath
}

View File

@ -279,7 +279,7 @@ func (b *Builder) Run(ctx context.Context, ui packer.Ui, hook packer.Hook) (pack
new(stepCreateVM),
new(stepCreateDisk),
&vboxcommon.StepAttachISOs{
AttachBootIso: true,
AttachBootISO: true,
ISOInterface: b.config.ISOInterface,
GuestAdditionsMode: b.config.GuestAdditionsMode,
GuestAdditionsInterface: b.config.GuestAdditionsInterface,

View File

@ -96,7 +96,7 @@ func (b *Builder) Run(ctx context.Context, ui packer.Ui, hook packer.Hook) (pack
KeepRegistered: b.config.KeepRegistered,
},
&vboxcommon.StepAttachISOs{
AttachBootIso: false,
AttachBootISO: false,
ISOInterface: b.config.GuestAdditionsInterface,
GuestAdditionsMode: b.config.GuestAdditionsMode,
GuestAdditionsInterface: b.config.GuestAdditionsInterface,

View File

@ -80,7 +80,7 @@ func (b *Builder) Run(ctx context.Context, ui packer.Ui, hook packer.Hook) (pack
Name: b.config.VMName,
},
&vboxcommon.StepAttachISOs{
AttachBootIso: false,
AttachBootISO: false,
ISOInterface: b.config.GuestAdditionsInterface,
GuestAdditionsMode: b.config.GuestAdditionsMode,
GuestAdditionsInterface: b.config.GuestAdditionsInterface,