Skip to content

Commit e362ebc

Browse files
allowing for type "web" for grafana_oncall_schedule update (#2443)
Recently, there was a change to update the grafana_oncall_schedule resource to update timezones, which required for the create to allow type "web". We need to apply that for the updating of the resource as well
1 parent ef52330 commit e362ebc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/resources/oncall/resource_schedule.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ func resourceScheduleUpdate(ctx context.Context, d *schema.ResourceData, client
227227

228228
timeZoneData, timeZoneOk := d.GetOk("time_zone")
229229
if timeZoneOk {
230-
if isScheduleTypeCalendar(typeData) {
230+
if isScheduleTypeCalendar(typeData) || isScheduleTypeWeb(typeData) {
231231
updateOptions.TimeZone = timeZoneData.(string)
232232
} else {
233233
return diag.Errorf("time_zone can not be set with type: %s", typeData)

0 commit comments

Comments
 (0)