Need to expose generation as a public property

This commit is contained in:
Taliesin Sisson 2015-07-12 18:57:42 +01:00
parent e18594f404
commit 4e8074d7e5
2 changed files with 4 additions and 4 deletions

View File

@ -15,8 +15,8 @@ import (
type StepMountSecondaryDvdImages struct {
Files []string
Generation uint
dvdProperties []DvdControllerProperties
generation uint
}
type DvdControllerProperties struct {
@ -94,7 +94,7 @@ func (s *StepMountSecondaryDvdImages) addAndMountDvdDisk(vmName string, isoPath
powershell := new(powershell.PowerShellCmd)
controllerNumber := "0"
if s.generation < 2 {
if s.Generation < 2 {
// get the controller number that the OS install disk is mounted on
// generation 1 requires dvd to be added to ide controller, generation 2 uses scsi for dvd drives
script.Reset()

View File

@ -309,8 +309,8 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
&hypervcommon.StepMountFloppydrive{},
&hypervcommon.StepMountSecondaryDvdImages{
Files: b.config.SecondaryDvdImages,
generation: b.config.Generation,
Files: b.config.SecondaryDvdImages,
Generation: b.config.Generation,
},
&hypervcommon.StepRun{