Skip to content

Commit 1c8f7ba

Browse files
fix incorrect usage of final_backup_description in instance deletion (#15613) (#11019)
[upstream:61d81b0fef2bb05b913c8557daf4958ce3527ad4] Signed-off-by: Modular Magician <[email protected]>
1 parent 15030a6 commit 1c8f7ba

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.changelog/15613.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
sql: fix incorrect usage of `final_backup_description` in `google_sql_database_instance` resource
3+
```

google-beta/services/sql/resource_sql_database_instance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2679,7 +2679,7 @@ func resourceSqlDatabaseInstanceDelete(d *schema.ResourceData, meta interface{})
26792679

26802680
var op *sqladmin.Operation
26812681
finalBackupDescription := ""
2682-
if v, ok := d.GetOk("finalBackupDescription"); ok {
2682+
if v, ok := d.GetOk("final_backup_description"); ok {
26832683
finalBackupDescription = v.(string)
26842684
}
26852685
err = transport_tpg.Retry(transport_tpg.RetryOptions{

0 commit comments

Comments
 (0)