Skip to content

Commit cc4f747

Browse files
committed
fix(notification channels): avoid drift on send_test_notification = true
1 parent 2082fa9 commit cc4f747

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sysdig/resource_sysdig_monitor_notification_channel_common.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ func monitorNotificationChannelToResourceData(nc *v2.NotificationChannel, data *
8484
}
8585
_ = data.Set("notify_when_ok", nc.Options.NotifyOnOk)
8686
_ = data.Set("notify_when_resolved", nc.Options.NotifyOnResolve)
87-
_ = data.Set("send_test_notification", nc.Options.SendTestNotification)
87+
// do not update send_test_notification from the api response as it will always be "false" on subsequent reads because the fields is not persisted
88+
// _ = data.Set("send_test_notification", nc.Options.SendTestNotification)
8889

8990
return
9091
}

0 commit comments

Comments
 (0)