wsp-10323 Convert the VSP provider into one utilizing PowerShell. Step 5 Storage

This commit is contained in:
AlexanderTr 2015-03-16 06:40:31 +03:00
parent b15d7966da
commit 13ae446aa1
11 changed files with 274 additions and 271 deletions

View file

@ -87,7 +87,7 @@ namespace WebsitePanel.Providers.Virtualization
if (bootFromCD)
cmd.Parameters.Add("FirstBootDevice", DvdDriveHelper.GetPS(powerShell, vm.Name));
else
cmd.Parameters.Add("FirstBootDevice", VirtualMachineHelper.GetVirtualHardDisksPS(powerShell, vm.Name).FirstOrDefault());
cmd.Parameters.Add("FirstBootDevice", HardDriveHelper.GetPS(powerShell, vm.Name).FirstOrDefault());
powerShell.Execute(cmd, false);
}