From 9891e75f75696d514baff262e8aacd9eb25a8051 Mon Sep 17 00:00:00 2001 From: William Brooks Date: Sun, 9 Feb 2020 15:39:35 -0600 Subject: [PATCH] update hyper-v driver_mock.go --- builder/hyperv/common/driver_mock.go | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/builder/hyperv/common/driver_mock.go b/builder/hyperv/common/driver_mock.go index 4005b35e2..4320f932a 100644 --- a/builder/hyperv/common/driver_mock.go +++ b/builder/hyperv/common/driver_mock.go @@ -229,12 +229,13 @@ type DriverMock struct { MountDvdDrive_ControllerLocation uint MountDvdDrive_Err error - SetBootDvdDrive_Called bool - SetBootDvdDrive_VmName string - SetBootDvdDrive_ControllerNumber uint - SetBootDvdDrive_ControllerLocation uint - SetBootDvdDrive_Generation uint - SetBootDvdDrive_Err error + SetBootDvdDrive_Called bool + SetBootDvdDrive_VmName string + SetBootDvdDrive_ControllerNumber uint + SetBootDvdDrive_ControllerLocation uint + SetBootDvdDrive_Generation uint + SetBootDvdDrive_LegacyGen1BootOrder bool + SetBootDvdDrive_Err error UnmountDvdDrive_Called bool UnmountDvdDrive_VmName string @@ -566,12 +567,13 @@ func (d *DriverMock) MountDvdDrive(vmName string, path string, controllerNumber } func (d *DriverMock) SetBootDvdDrive(vmName string, controllerNumber uint, controllerLocation uint, - generation uint) error { + generation uint, legacyGen1BootOrder bool) error { d.SetBootDvdDrive_Called = true d.SetBootDvdDrive_VmName = vmName d.SetBootDvdDrive_ControllerNumber = controllerNumber d.SetBootDvdDrive_ControllerLocation = controllerLocation d.SetBootDvdDrive_Generation = generation + d.SetBootDvdDrive_LegacyGen1BootOrder = legacyGen1BootOrder return d.SetBootDvdDrive_Err }