Skip to content

Commit

Permalink
Add DiffSuppress for global address ip_version. IPV4 and empty are eq…
Browse files Browse the repository at this point in the history
…uivalent, but the API will return whichever one was sent on creation. Fixes #1637. (#1639)
  • Loading branch information
modular-magician authored and danawillow committed Jun 11, 2018
1 parent c51ab5f commit 605c950
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions google/resource_compute_global_address.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,11 @@ func resourceComputeGlobalAddress() *schema.Resource {
ForceNew: true,
},
"ip_version": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
ValidateFunc: validation.StringInSlice([]string{"IPV4", "IPV6", ""}, false),
Type: schema.TypeString,
Optional: true,
ForceNew: true,
ValidateFunc: validation.StringInSlice([]string{"IPV4", "IPV6", ""}, false),
DiffSuppressFunc: emptyOrDefaultStringSuppress("IPV4"),
},
"address": {
Type: schema.TypeString,
Expand Down

0 comments on commit 605c950

Please sign in to comment.