Skip to content

Commit

Permalink
Merge pull request #1228 from wsquan171/ipb-fix
Browse files Browse the repository at this point in the history
Fix set IP block visibility on READ if NSX version too low
  • Loading branch information
wsquan171 authored Jun 7, 2024
2 parents 316cd64 + d620f74 commit ff9f397
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nsxt/resource_nsxt_policy_ip_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit ff9f397

Please sign in to comment.