mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
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
Block a user