mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-01 07:42:40 +00:00
Add new DiffSuppress for dns managed zone visibility (#3461)
Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
parent
c4d8953838
commit
4850ec52fd
|
@ -335,6 +335,9 @@ func flattenDnsManagedZoneLabels(v interface{}, d *schema.ResourceData) interfac
|
||||||
}
|
}
|
||||||
|
|
||||||
func flattenDnsManagedZoneVisibility(v interface{}, d *schema.ResourceData) interface{} {
|
func flattenDnsManagedZoneVisibility(v interface{}, d *schema.ResourceData) interface{} {
|
||||||
|
if v == nil || v.(string) == "" {
|
||||||
|
return "public"
|
||||||
|
}
|
||||||
return v
|
return v
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -77,6 +77,8 @@ resource "google_dns_managed_zone" "foobar" {
|
||||||
labels = {
|
labels = {
|
||||||
foo = "bar"
|
foo = "bar"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
visibility = "public"
|
||||||
}`, suffix, suffix, description)
|
}`, suffix, suffix, description)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user