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 3ec4015 commit d824f99
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions google/resource_sql_database_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -594,9 +594,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

0 comments on commit d824f99

Please sign in to comment.