From cce9132ecf0eb0860c8242dd741004586236b496 Mon Sep 17 00:00:00 2001 From: Modular Magician Date: Fri, 13 Aug 2021 22:58:10 +0000 Subject: [PATCH] fixing a diff on location (#5088) Signed-off-by: Modular Magician --- .changelog/5088.txt | 3 +++ google/resource_bigquery_dataset.go | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 .changelog/5088.txt diff --git a/.changelog/5088.txt b/.changelog/5088.txt new file mode 100644 index 00000000000..a5e61e1a3f9 --- /dev/null +++ b/.changelog/5088.txt @@ -0,0 +1,3 @@ +```release-note:bug +Bigquery: fixed the permadiff bug on `location` of the `google_bigquery_dataset` +``` diff --git a/google/resource_bigquery_dataset.go b/google/resource_bigquery_dataset.go index c40f02a9509..4b467d7ff8e 100644 --- a/google/resource_bigquery_dataset.go +++ b/google/resource_bigquery_dataset.go @@ -162,9 +162,10 @@ organize and group your datasets`, Elem: &schema.Schema{Type: schema.TypeString}, }, "location": { - Type: schema.TypeString, - Optional: true, - ForceNew: true, + Type: schema.TypeString, + Optional: true, + ForceNew: true, + DiffSuppressFunc: caseDiffSuppress, Description: `The geographic location where the dataset should reside. See [official docs](https://cloud.google.com/bigquery/docs/dataset-locations).