terraform-provider-databricks
terraform-provider-databricks copied to clipboard
ISSUE] Issue with `databricks_automatic_cluster_update_workspace_setting` resource - UTC time not being set correctly
Configuration
resource "databricks_automatic_cluster_update_workspace_setting" "auto-patching" {
provider = databricks
automatic_cluster_update_workspace {
enabled = true
restart_even_if_no_updates_available = false
maintenance_window {
week_day_based_schedule {
day_of_week = "SUNDAY"
frequency = "FIRST_AND_THIRD_OF_MONTH"
window_start_time {
hours = 02
minutes = 04
}
}
}
}
}
Expected Behavior
UTC time set in maintenance window databricks GUI set to 02:04.
Actual Behavior
UTC time set to 124.
Additional testing
Following Hours and Minutes values were used in terraform code, whilst output represents value in Databricks GUI
| Hours | Minutes | Output |
|-------|---------|--------|
| 04 | 05 | 245 |
| 16 | 01 | 961 |
| 17 | 00 | 00:00 |
| 16 | 00 | 00:00 |
| 2 | 4 | 124 |
Steps to Reproduce
-
terraform apply -
Checkout Databricks GUI
Terraform and provider versions
1.47.0
Is it a regression?
Unknown
Debug Output
N/A
Important Factoids
N/A
Would you like to implement a fix?
No