Skip to content

Commit

Permalink
Allow zeroes in until_hour/until_minute under notification_policy.del…
Browse files Browse the repository at this point in the history
…ay_action. (#379)

The referenced issue
opsgenie/opsgenie-go-sdk-v2#29 has been fixed.

Co-authored-by: Rudolf Thomas <[email protected]>
  • Loading branch information
arjunrajpal and rudo-thomas authored Jun 12, 2023
1 parent 1e2d6be commit 225aaa8
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions opsgenie/resource_opsgenie_notification_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,18 +262,14 @@ func resourceOpsGenieNotificationPolicy() *schema.Resource {
}, false),
},
"until_minute": {
Type: schema.TypeInt,
Optional: true,
// This should be from 0 to 23 but due to BUG in SDK it has to be more than 1
// https://github.com/opsgenie/opsgenie-go-sdk-v2/issues/29
ValidateFunc: validation.IntBetween(1, 59),
Type: schema.TypeInt,
Optional: true,
ValidateFunc: validation.IntBetween(0, 59),
},
"until_hour": {
Type: schema.TypeInt,
Optional: true,
// This should be from 0 to 23 but due to BUG in SDK it has to be more than 1
// https://github.com/opsgenie/opsgenie-go-sdk-v2/issues/29
ValidateFunc: validation.IntBetween(1, 23),
Type: schema.TypeInt,
Optional: true,
ValidateFunc: validation.IntBetween(0, 23),
},
"duration": {
Type: schema.TypeList,
Expand Down

0 comments on commit 225aaa8

Please sign in to comment.