Skip to content

Commit b246699

Browse files
do not remove spanner extraStatements in TFV (#6201) (#4442)
* do not remove extraStatements in validator * update test instead of flagging TFV * Revert "update test instead of flagging TFV" This reverts commit 2bceda09eacad1be8563002c2fe515749caecf99. * Added comment * Update mmv1/templates/terraform/encoders/spanner_database.go.erb Co-authored-by: Stephen Lewis (Burrows) <[email protected]> Co-authored-by: Stephen Lewis (Burrows) <[email protected]> Signed-off-by: Modular Magician <[email protected]> Co-authored-by: Stephen Lewis (Burrows) <[email protected]>
1 parent a0c2251 commit b246699

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.changelog/6201.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
3+
```

google-beta/resource_spanner_database.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,8 +699,9 @@ func resourceSpannerDatabaseEncoder(d *schema.ResourceData, meta interface{}, ob
699699
log.Printf("[DEBUG] Preparing to create new Database. Any extra DDL statements will be applied to the Database in a separate API call")
700700

701701
delete(obj, "name")
702-
delete(obj, "versionRetentionPeriod")
703702
delete(obj, "instance")
703+
704+
delete(obj, "versionRetentionPeriod")
704705
delete(obj, "extraStatements")
705706
return obj, nil
706707
}

0 commit comments

Comments
 (0)