Skip to content

Commit

Permalink
Merge pull request #362 from terraform-providers/fix_edge
Browse files Browse the repository at this point in the history
Fix edge node data source member index handling
  • Loading branch information
asarfaty authored Jun 18, 2020
2 parents 7904f30 + 3f16376 commit a90e8e3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nsxt/data_source_nsxt_policy_edge_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ func dataSourceNsxtPolicyEdgeNodeRead(d *schema.ResourceData, m interface{}) err
edgeClusterPath := d.Get("edge_cluster_path").(string)
// Note - according to the documentation GetOkExists should be used
// for bool types, but in this case it works and GetOk doesn't

memberIndex, memberIndexSet := d.GetOk("member_index")
memberIndex, memberIndexSet := d.GetOkExists("member_index")

if isPolicyGlobalManager(m) {
query := make(map[string]string)
Expand Down

0 comments on commit a90e8e3

Please sign in to comment.