From 3f1637694ac8235b2b28a9b2968c0c556ac65c40 Mon Sep 17 00:00:00 2001 From: asarfaty Date: Wed, 17 Jun 2020 10:46:55 +0200 Subject: [PATCH] Fix edge node data source member index handling --- nsxt/data_source_nsxt_policy_edge_node.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)