Removed duplicate calculation of HostClusterID
This commit is contained in:
@@ -4809,8 +4809,6 @@ function New-HVPool {
|
||||
try {
|
||||
$desktopVirtualCenterProvisioningData = Get-HVPoolProvisioningData -vc $virtualCenterID -vmObject $desktopVirtualCenterProvisioningData
|
||||
$hostClusterId = $desktopVirtualCenterProvisioningData.HostOrCluster
|
||||
$hostOrCluster_helper = New-Object VMware.Hv.HostOrClusterService
|
||||
$hostClusterIds = (($hostOrCluster_helper.HostOrCluster_GetHostOrClusterTree($services, $desktopVirtualCenterProvisioningData.datacenter)).treeContainer.children.info).Id
|
||||
$desktopVirtualCenterStorageSettings = Get-HVPoolStorageObject -hostClusterIds $hostClusterId -storageObject $desktopVirtualCenterStorageSettings
|
||||
$DesktopVirtualCenterNetworkingSettings = Get-HVPoolNetworkSetting -networkObject $DesktopVirtualCenterNetworkingSettings
|
||||
$desktopCustomizationSettings = Get-HVPoolCustomizationSetting -vc $virtualCenterID -customObject $desktopCustomizationSettings
|
||||
|
||||
Reference in New Issue
Block a user