mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Simplify setting up EscalationPolicy
This commit is contained in:
parent
69fb733ad0
commit
35312f0066
@ -61,9 +61,13 @@ func buildServiceStruct(d *schema.ResourceData) *pagerduty.Service {
|
|||||||
service.AcknowledgementTimeout = &acknowledgementTimeout
|
service.AcknowledgementTimeout = &acknowledgementTimeout
|
||||||
}
|
}
|
||||||
|
|
||||||
policy := &pagerduty.EscalationPolicy{}
|
policy := &pagerduty.EscalationPolicy{
|
||||||
policy.ID = d.Get("escalation_policy").(string)
|
APIObject: pagerduty.APIObject{
|
||||||
policy.Type = "escalation_policy"
|
ID: d.Get("escalation_policy").(string),
|
||||||
|
Type: "escalation_policy",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
service.EscalationPolicy = *policy
|
service.EscalationPolicy = *policy
|
||||||
|
|
||||||
return &service
|
return &service
|
||||||
|
Loading…
Reference in New Issue
Block a user