Check for errors when setting escalation_rule
This commit is contained in:
parent
3fae0454bf
commit
69fb733ad0
|
@ -118,7 +118,10 @@ func resourcePagerDutyEscalationPolicyRead(d *schema.ResourceData, meta interfac
|
|||
d.Set("name", e.Name)
|
||||
d.Set("description", e.Description)
|
||||
d.Set("num_loops", e.NumLoops)
|
||||
d.Set("escalation_rule", flattenRules(e.EscalationRules))
|
||||
|
||||
if err := d.Set("escalation_rule", flattenRules(e.EscalationRules)); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue