diff --git a/opsgenie/data_source_opsgenie_escalation.go b/opsgenie/data_source_opsgenie_escalation.go index fb15e0f3..d446d05f 100644 --- a/opsgenie/data_source_opsgenie_escalation.go +++ b/opsgenie/data_source_opsgenie_escalation.go @@ -118,7 +118,9 @@ func dataSourceOpsgenieEscalationRead(d *schema.ResourceData, meta interface{}) d.Set("name", getResponse.Name) d.Set("description", getResponse.Description) d.Set("rules", flattenOpsgenieEscalationRules(getResponse.Rules)) - d.Set("repeat", flattenOpsgenieEscalationRepeat(getResponse.Repeat)) + if getResponse.Repeat != nil { + d.Set("repeat", flattenOpsgenieEscalationRepeat(getResponse.Repeat)) + } if getResponse.OwnerTeam != nil { d.Set("owner_team_id", getResponse.OwnerTeam.Id) }