Skip to content

Commit

Permalink
send maintenance_window.hour even if it's zero, since that's a valid …
Browse files Browse the repository at this point in the history
…value
  • Loading branch information
danawillow authored and modular-magician committed Dec 11, 2018
1 parent 36e6a63 commit 517200d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions google-beta/resource_sql_database_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
}
}

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 517200d

Please sign in to comment.