Skip to content

Commit b8f81ea

Browse files
force send boolean backup fields (#3397) (#1973)
Signed-off-by: Modular Magician <[email protected]>
1 parent 0e76db9 commit b8f81ea

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.changelog/3397.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: Allowed `binary_log_enabled` to be disabled.
3+
```

google-beta/resource_sql_database_instance.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,7 @@ func expandBackupConfiguration(configured []interface{}) *sqladmin.BackupConfigu
799799
Enabled: _backupConfiguration["enabled"].(bool),
800800
StartTime: _backupConfiguration["start_time"].(string),
801801
Location: _backupConfiguration["location"].(string),
802+
ForceSendFields: []string{"BinaryLogEnabled", "Enabled"},
802803
}
803804
}
804805

0 commit comments

Comments
 (0)