File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments