diff --git a/nsxt/data_source_nsxt_policy_edge_node.go b/nsxt/data_source_nsxt_policy_edge_node.go index 0e6a5dad4..95ac3b4ff 100644 --- a/nsxt/data_source_nsxt_policy_edge_node.go +++ b/nsxt/data_source_nsxt_policy_edge_node.go @@ -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)