mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-05 09:42:40 +00:00
Add DiffSuppress for global address ip_version. IPV4 and empty are equivalent, but the API will return whichever one was sent on creation. Fixes #1637. (#1639)
This commit is contained in:
parent
c51ab5f28e
commit
605c950b18
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user