Skip to content

Commit

Permalink
Merge pull request #1489 from ksamoray/switch_profile_predefined
Browse files Browse the repository at this point in the history
Retrieve also system-defined hostswitch profile while creating transport nodes
  • Loading branch information
ksamoray authored Dec 23, 2024
2 parents d7a0096 + 5c07728 commit 017a648
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 017a648

Please sign in to comment.