Skip to content

Commit

Permalink
Retrieve also system-defined hostswitch profile while creating transp…
Browse files Browse the repository at this point in the history
…ort nodes

User may use system-defined hostswitch profiles while creating transport nodes, and should be retrieved as well as user defined hostswitch profiles.

Signed-off-by: Kobi Samoray <[email protected]>
  • Loading branch information
ksamoray committed Dec 23, 2024
1 parent d7a0096 commit 5c07728
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nsxt/resource_nsxt_edge_transport_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -965,9 +965,9 @@ func getCPUConfigFromSchema(cpuConfigList []interface{}) []mpmodel.CpuCoreConfig
func getHostSwitchProfileResourceType(m interface{}, id string) (string, error) {
connector := getPolicyConnector(m)
client := infra.NewHostSwitchProfilesClient(connector)

t := true
// we retrieve a list of profiles instead of using Get(), as the id could be either MP id or Policy id
list, err := client.List(nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil)
list, err := client.List(nil, nil, nil, nil, &t, nil, nil, nil, nil, nil, nil, nil)
if err != nil {
return "", err
}
Expand Down

0 comments on commit 5c07728

Please sign in to comment.