Add new DiffSuppress for dns managed zone visibility (#3461)

Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
The Magician 2019-04-18 15:08:59 -07:00 committed by emily
parent c4d8953838
commit 4850ec52fd
2 changed files with 5 additions and 0 deletions

View File

@ -335,6 +335,9 @@ func flattenDnsManagedZoneLabels(v interface{}, d *schema.ResourceData) interfac
}
func flattenDnsManagedZoneVisibility(v interface{}, d *schema.ResourceData) interface{} {
if v == nil || v.(string) == "" {
return "public"
}
return v
}

View File

@ -77,6 +77,8 @@ resource "google_dns_managed_zone" "foobar" {
labels = {
foo = "bar"
}
visibility = "public"
}`, suffix, suffix, description)
}