Skip to content

Commit af9278d

Browse files
committed
fix(alert): Alerts with capture definition had no capture enabled
Signed-off-by: Federico Barcelona <[email protected]>
1 parent 05b8867 commit af9278d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sysdig/resource_sysdig_monitor_alert_common.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ func sysdigCaptureFromSet(d *schema.Set) (captures []*monitor.SysdigCapture, err
189189
capture := &monitor.SysdigCapture{
190190
Name: m["filename"].(string),
191191
Duration: m["duration"].(int),
192+
Enabled: true,
192193
}
193194
if filter, ok := m["filter"]; ok {
194195
capture.Filters = filter.(string)

0 commit comments

Comments
 (0)