Skip to content

Commit ab99049

Browse files
committed
Update Remove-NonResponsiveHosts
Update Remove-NonResponsiveHosts to remove legacy code Signed-off-by: Brian O'Connell <brian.oconnell@broadcom.com>
1 parent 001283c commit ab99049

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

VMware.CloudFoundation.InstanceRecovery.psm1

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3858,11 +3858,7 @@ Function Remove-NonResponsiveHosts {
38583858

38593859
#Reattach TNP
38603860
#Get Transport Node Profiles
3861-
If ($nsxManagerVersion -le "313") {
3862-
$uri = "https://$nsxManagerFqdn/api/v1/transport-node-profiles"
3863-
} else {
38643861
$uri = "https://$nsxManagerFqdn/policy/api/v1/infra/host-transport-node-profiles"
3865-
}
38663862

38673863
$transportNodeProfiles = ((Invoke-WebRequest -Method GET -URI $uri -ContentType application/json -headers $headers).content | ConvertFrom-Json).results
38683864
$clusterTransportNodeProfile = $transportNodeProfiles | where-object { $_.display_name -like "*$clusterName*" }

0 commit comments

Comments
 (0)