Skip to content

Commit

Permalink
Add new DiffSuppress for dns managed zone visibility
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
emilymye authored and modular-magician committed Apr 18, 2019
1 parent 060a7f7 commit 0020059
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions google-beta/resource_dns_managed_zone.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,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
}

Expand Down
2 changes: 2 additions & 0 deletions google-beta/resource_dns_managed_zone_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ resource "google_dns_managed_zone" "foobar" {
labels = {
foo = "bar"
}
visibility = "public"
}`, suffix, suffix, description)
}

Expand Down

0 comments on commit 0020059

Please sign in to comment.