s/EnabeSecureBoot/EnableSecureBoot/g

This commit is contained in:
Patrick Lang 2016-08-05 18:03:30 -07:00 committed by Taliesin Sisson
parent 7ce9203530
commit 6342e1525d
2 changed files with 4 additions and 4 deletions

View File

@ -21,7 +21,7 @@ type StepCreateVM struct {
DiskSize uint
Generation uint
Cpu uint
EnabeSecureBoot bool
EnableSecureBoot bool
}
func (s *StepCreateVM) Run(state multistep.StateBag) multistep.StepAction {
@ -36,7 +36,7 @@ func (s *StepCreateVM) Run(state multistep.StateBag) multistep.StepAction {
diskSize := int64(s.DiskSize * 1024 * 1024)
switchName := s.SwitchName
enabeSecureBoot := s.EnabeSecureBoot
enableSecureBoot := s.EnableSecureBoot
err := driver.CreateVirtualMachine(s.VMName, path, ram, diskSize, switchName, s.Generation)
if err != nil {
@ -55,7 +55,7 @@ func (s *StepCreateVM) Run(state multistep.StateBag) multistep.StepAction {
}
if s.Generation == 2 {
err = driver.SetSecureBoot(s.VMName, enabeSecureBoot)
err = driver.SetSecureBoot(s.VMName, enableSecureBoot)
if err != nil {
err := fmt.Errorf("Error setting secure boot: %s", err)
state.Put("error", err)

View File

@ -297,7 +297,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
DiskSize: b.config.DiskSize,
Generation: b.config.Generation,
Cpu: b.config.Cpu,
EnabeSecureBoot: b.config.EnableSecureBoot,
EnableSecureBoot: b.config.EnableSecureBoot,
},
&hypervcommon.StepEnableIntegrationService{},