From 181132f32bfbd5cb5c8e0593240dc5794e18514c Mon Sep 17 00:00:00 2001 From: Taliesin Sisson Date: Sat, 5 Dec 2015 03:13:38 -0800 Subject: [PATCH] Forget to pass in the dvd drive to eject the iso from --- powershell/hyperv/hyperv.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powershell/hyperv/hyperv.go b/powershell/hyperv/hyperv.go index e34907521..8c330f426 100644 --- a/powershell/hyperv/hyperv.go +++ b/powershell/hyperv/hyperv.go @@ -91,7 +91,7 @@ $lastControllerNumber script = ` param([string]$vmName, [string]$isoPath, [int]$controllerNumber) $dvdController = Add-VMDvdDrive -VMName $vmName -ControllerNumber $controllerNumber -path $isoPath -Passthru -Set-VMDvdDrive -path $null +$dvdController | Set-VMDvdDrive -path $null $dvdController.ControllerLocation `