From 8103900972e84750453606742bb988f574b6856a Mon Sep 17 00:00:00 2001 From: Modular Magician Date: Fri, 27 Aug 2021 18:03:10 +0000 Subject: [PATCH] added Spanner processingUnits to fieldMask (#5147) Signed-off-by: Modular Magician --- .changelog/5147.txt | 3 +++ google/resource_spanner_instance.go | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 .changelog/5147.txt diff --git a/.changelog/5147.txt b/.changelog/5147.txt new file mode 100644 index 00000000000..910ac4480d2 --- /dev/null +++ b/.changelog/5147.txt @@ -0,0 +1,3 @@ +```release-note:bug +spanner: fixed instance updates to processing units +``` diff --git a/google/resource_spanner_instance.go b/google/resource_spanner_instance.go index 714dfa97a7d..d4227145a72 100644 --- a/google/resource_spanner_instance.go +++ b/google/resource_spanner_instance.go @@ -647,6 +647,9 @@ func resourceSpannerInstanceUpdateEncoder(d *schema.ResourceData, meta interface if d.HasChange("labels") { updateMask = append(updateMask, "labels") } + if d.HasChange("processing_units") { + updateMask = append(updateMask, "processingUnits") + } newObj["fieldMask"] = strings.Join(updateMask, ",") return newObj, nil }