Skip to content

Commit cf4eb03

Browse files
committed
Update Move-ClusterHostNetworkingTovSS
Update Move-ClusterHostNetworkingTovSS to handle change in 9.0 Signed-off-by: Brian O'Connell <brian.oconnell@broadcom.com>
1 parent 37fd6bb commit cf4eb03

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

VMware.CloudFoundation.InstanceRecovery.psm1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3418,7 +3418,9 @@ Function Move-ClusterHostNetworkingTovSS {
34183418
}
34193419
$cluster = Get-Cluster -name $clusterName
34203420
$cluster | Set-Annotation -CustomAttribute "vdsConfiguration" -Value ($clustervdsConfiguration | ConvertTo-Json) | Out-Null
3421-
$storedVdsConfiguration = (((Get-Cluster -name $clustername).customfields | Where-Object { $_.key -eq "vdsConfiguration" }).value) | ConvertFrom-Json
3421+
#$storedVdsConfiguration = (((Get-Cluster -name $clustername).customfields | Where-Object { $_.key -eq "vdsConfiguration" }).value) | ConvertFrom-Json
3422+
$index = [System.Array]::IndexOf((Get-Cluster).customfields.keys, "vdsConfiguration")
3423+
$storedVdsConfiguration = @((Get-Cluster).customfields.values)[$index] | ConvertFrom-Json
34223424
}
34233425

34243426
Foreach ($vdsName in $clusterVdswitchNames) {

0 commit comments

Comments
 (0)