applied fmt

This commit is contained in:
William Brooks 2020-02-09 15:22:36 -06:00
parent 7152732597
commit 31622b50ac
3 changed files with 4 additions and 4 deletions

View File

@ -58,7 +58,7 @@ func (s *StepMountDvdDrive) Run(ctx context.Context, state multistep.StateBag) m
state.Put("os.dvd.properties", dvdControllerProperties)
if ((s.Generation == 1) && (!s.LegacyGen1BootOrder)) {
if (s.Generation == 1) && (!s.LegacyGen1BootOrder) {
ui.Say("Setting boot drive to IDE and then CD drive. Use legacy_gen1_boot_order to override.")
} else {
ui.Say(fmt.Sprintf("Setting boot drive to os dvd drive %s ...", isoPath))

View File

@ -160,7 +160,7 @@ func SetBootDvdDrive(vmName string, controllerNumber uint, controllerLocation ui
if generation < 2 {
var script string
if (legacyGen1BootOrder) {
if legacyGen1BootOrder {
script = `
param([string]$vmName)
Hyper-V\Set-VMBios -VMName $vmName -StartupOrder @("CD","IDE","LegacyNetworkAdapter","Floppy")