Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Commit

Permalink
[MCTB-2419] Fix alert grouping (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
grzegorzpro authored Jun 8, 2022
1 parent d55462f commit 25cca16
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pagerduty/resource_pagerduty_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,12 @@ func flattenService(d *schema.ResourceData, service *pagerduty.Service) error {
}

func expandAlertGroupingParameters(v interface{}) *pagerduty.AlertGroupingParameters {
riur := v.([]interface{})[0].(map[string]interface{})
parameters := v.([]interface{})[0]
if parameters == nil {
parameters = map[string]interface{}{"type": ""}
}

riur := parameters.(map[string]interface{})
alertGroupingParameters := &pagerduty.AlertGroupingParameters{
Config: &pagerduty.AlertGroupingConfig{},
}
Expand Down

0 comments on commit 25cca16

Please sign in to comment.