From 517200db53bc9528738f4746d32ce07f361a6d1c Mon Sep 17 00:00:00 2001 From: Dana Hoffman Date: Tue, 11 Dec 2018 19:49:21 +0000 Subject: [PATCH] send maintenance_window.hour even if it's zero, since that's a valid value --- google-beta/resource_sql_database_instance.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/google-beta/resource_sql_database_instance.go b/google-beta/resource_sql_database_instance.go index aadd4e5500..e3379583a2 100644 --- a/google-beta/resource_sql_database_instance.go +++ b/google-beta/resource_sql_database_instance.go @@ -602,9 +602,10 @@ func expandMaintenanceWindow(configured []interface{}) *sqladmin.MaintenanceWind window := configured[0].(map[string]interface{}) return &sqladmin.MaintenanceWindow{ - Day: int64(window["day"].(int)), - Hour: int64(window["hour"].(int)), - UpdateTrack: window["update_track"].(string), + Day: int64(window["day"].(int)), + Hour: int64(window["hour"].(int)), + UpdateTrack: window["update_track"].(string), + ForceSendFields: []string{"Hour"}, } } @@ -632,7 +633,7 @@ func expandIpConfiguration(configured []interface{}) *sqladmin.IpConfiguration { RequireSsl: _ipConfiguration["require_ssl"].(bool), PrivateNetwork: _ipConfiguration["private_network"].(string), AuthorizedNetworks: expandAuthorizedNetworks(_ipConfiguration["authorized_networks"].(*schema.Set).List()), - ForceSendFields: []string{"Ipv4Enabled"}, + ForceSendFields: []string{"Ipv4Enabled", "RequireSsl"}, } } func expandAuthorizedNetworks(configured []interface{}) []*sqladmin.AclEntry {