Consider unresolved alerts always pending

This commit is contained in:
Fabian Reinartz 2015-10-05 16:09:55 +02:00
parent 5222e340b8
commit b0ca8f7c1c

View File

@ -144,7 +144,7 @@ func (a *MemAlerts) getPending() []*types.Alert {
fps := map[model.Fingerprint]struct{}{}
for _, ns := range a.data.notifies {
for fp, notify := range ns {
if !notify.Delivered {
if !notify.Resolved || !notify.Delivered {
fps[fp] = struct{}{}
}
}