Skip to content

Commit 7a92f57

Browse files
fix
1 parent 2afc0b9 commit 7a92f57

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

sysdig/resource_sysdig_secure_accept_posture_risk.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,6 @@ func resourceSysdigSecureAcceptPostureControlCreate(ctx context.Context, d *sche
122122
req.ExpiresAt = d.Get(SchemaExpiresAtKey).(int64)
123123
}
124124

125-
if req.ZoneName == "" && req.Filter == "" || req.ZoneName != "" && req.Filter != "" {
126-
return diag.Errorf("Error creating accept risk. Either a zone name must be provided to accept all resources for control in a specific zone, or a filter must be provided to accept a specific resource.")
127-
}
128-
129125
acceptance, errStatus, err := client.SaveAcceptPostureRisk(ctx, req)
130126
if err != nil {
131127
return diag.Errorf("Error creating accept risk. error status: %s err: %s", errStatus, err)

0 commit comments

Comments
 (0)