From d9c26d9a00b8893e963da494de7f667287ad69ac Mon Sep 17 00:00:00 2001 From: Modular Magician <magic-modules@google.com> Date: Tue, 21 Apr 2020 21:10:30 +0000 Subject: [PATCH] force send boolean backup fields (#3397) Signed-off-by: Modular Magician <magic-modules@google.com> --- .changelog/3397.txt | 3 +++ google-beta/resource_sql_database_instance.go | 1 + 2 files changed, 4 insertions(+) create mode 100644 .changelog/3397.txt diff --git a/.changelog/3397.txt b/.changelog/3397.txt new file mode 100644 index 0000000000..bb00464043 --- /dev/null +++ b/.changelog/3397.txt @@ -0,0 +1,3 @@ +```release-note:bug +sql: Allowed `binary_log_enabled` to be disabled. +``` diff --git a/google-beta/resource_sql_database_instance.go b/google-beta/resource_sql_database_instance.go index f73e631dcc..13db5dcab1 100644 --- a/google-beta/resource_sql_database_instance.go +++ b/google-beta/resource_sql_database_instance.go @@ -799,6 +799,7 @@ func expandBackupConfiguration(configured []interface{}) *sqladmin.BackupConfigu Enabled: _backupConfiguration["enabled"].(bool), StartTime: _backupConfiguration["start_time"].(string), Location: _backupConfiguration["location"].(string), + ForceSendFields: []string{"BinaryLogEnabled", "Enabled"}, } }