diff --git a/nsxt/resource_nsxt_policy_ip_block.go b/nsxt/resource_nsxt_policy_ip_block.go index 87d3f0596..d3db22e9a 100644 --- a/nsxt/resource_nsxt_policy_ip_block.go +++ b/nsxt/resource_nsxt_policy_ip_block.go @@ -92,7 +92,9 @@ func resourceNsxtPolicyIPBlockRead(d *schema.ResourceData, m interface{}) error d.Set("path", block.Path) d.Set("revision", block.Revision) d.Set("cidr", block.Cidr) - d.Set("visibility", block.Visibility) + if util.NsxVersionHigherOrEqual("4.2.0") { + d.Set("visibility", block.Visibility) + } return nil }