Skip to content

Commit

Permalink
added Spanner processingUnits to fieldMask (#5147) (#3575)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician committed Aug 27, 2021
1 parent 626ad2c commit 0b6bb66
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/5147.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
spanner: fixed instance updates to processing units
```
3 changes: 3 additions & 0 deletions google-beta/resource_spanner_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 0b6bb66

Please sign in to comment.