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

Commit

Permalink
[MCTB-2369] Fix alert grouping parameters (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
grzegorzpro authored May 30, 2022
1 parent 7f5b800 commit d55462f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pagerduty/resource_pagerduty_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ func expandAlertGroupingConfig(v interface{}) *pagerduty.AlertGroupingConfig {
return alertGroupingConfig
}
func flattenAlertGroupingParameters(v *pagerduty.AlertGroupingParameters) interface{} {
alertGroupingParameters := map[string]interface{}{"type": "", "config": []map[string]interface{}{{"aggregate": nil, "fields": nil, "timeout": nil}}}
alertGroupingParameters := map[string]interface{}{"type": ""}

if v.Type != nil {
alertGroupingParameters["type"] = v.Type
Expand Down

0 comments on commit d55462f

Please sign in to comment.