Need to expose generation as a public property
This commit is contained in:
parent
e18594f404
commit
4e8074d7e5
|
@ -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()
|
||||
|
|
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue