diff --git a/pagerduty/resource_pagerduty_escalation_policy.go b/pagerduty/resource_pagerduty_escalation_policy.go index 57933e765..d6734ed2f 100644 --- a/pagerduty/resource_pagerduty_escalation_policy.go +++ b/pagerduty/resource_pagerduty_escalation_policy.go @@ -7,6 +7,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/helper/validation" "github.com/heimweh/go-pagerduty/pagerduty" ) @@ -32,6 +33,7 @@ func resourcePagerDutyEscalationPolicy() *schema.Resource { "num_loops": { Type: schema.TypeInt, Optional: true, + ValidateFunc: validation.IntBetween(0, 9), }, "teams": { Type: schema.TypeList,