Merge pull request #171 from Magneet/master

replaced return of vcenter vm id's
This commit is contained in:
Kyle Ruddy
2018-03-06 20:43:05 -05:00
committed by GitHub

View File

@@ -309,7 +309,7 @@ The Add-HVDesktop adds virtual machines to already exiting pools by using view A
if (!$confirmFlag -OR $pscmdlet.ShouldProcess($machines)) {
$desktop_service_helper.Desktop_AddMachinesToManualDesktop($services,$id,$machineList)
}
return $machineList
write-host "Successfully added desktop(s) to pool"
}
default {
Write-Error "Only Automated/Manual pool types support this add operation"
@@ -448,7 +448,7 @@ function Add-HVRDSServer {
if (!$confirmFlag -OR $pscmdlet.ShouldProcess($rdsServers)) {
$farm_service_helper.Farm_AddRDSServers($services, $id, $serverList)
}
return $serverList
write-host "Successfully added RDS Server(s) to Farm"
} catch {
Write-Error "Failed to Add RDS Server to Farm with error: $_"
break
@@ -9233,10 +9233,10 @@ $query_service_helper = New-Object VMware.Hv.GlobalSessionQueryServiceService
$query=new-object vmware.hv.GlobalSessionQueryServiceQuerySpec
$SessionList = @()
$GetNext = $false
foreach ($pod in $services.Pod.Pod_List()) {
$query.pod=$pod.id
$queryResults = $query_service_helper.GlobalSessionQueryService_QueryWithSpec($services, $query)
$GetNext = $false
do {
if ($GetNext) { $queryResults = $query_service_helper.GlobalSessionQueryService_GetNext($services, $queryResults.id) }
$SessionList += $queryResults.results