Skip to content

Commit 084ada9

Browse files
committed
Reinforce the validation of the Policy severity
Signed-off-by: Federico Barcelona <[email protected]>
1 parent 1071a0c commit 084ada9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sysdig/resource_sysdig_secure_policy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func resourceSysdigSecurePolicy() *schema.Resource {
5252
Type: schema.TypeInt,
5353
Default: 4,
5454
Optional: true,
55-
ValidateFunc: validation.IntBetween(1, 9),
55+
ValidateFunc: validation.IntInSlice([]int{0, 4, 6, 7}),
5656
},
5757
"enabled": {
5858
Type: schema.TypeBool,

0 commit comments

Comments
 (0)