Skip to content

Commit

Permalink
Merge pull request #395 from drastawi/num-loops
Browse files Browse the repository at this point in the history
Set constraints on Escalation Policy num_loops
  • Loading branch information
Scott McAllister authored Sep 27, 2021
2 parents de1c95a + 6568118 commit 71f9326
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pagerduty/resource_pagerduty_escalation_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand All @@ -32,6 +33,7 @@ func resourcePagerDutyEscalationPolicy() *schema.Resource {
"num_loops": {
Type: schema.TypeInt,
Optional: true,
ValidateFunc: validation.IntBetween(0, 9),
},
"teams": {
Type: schema.TypeList,
Expand Down

0 comments on commit 71f9326

Please sign in to comment.