Skip to content

Commit

Permalink
added Spanner processingUnits to fieldMask (#5147) (#9933)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Aug 27, 2021
1 parent 830079d commit 54c56c7
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/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 54c56c7

Please sign in to comment.