Skip to content

Commit

Permalink
icinga2: Reset Event#ID before resending ack set event
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabteab committed Jul 17, 2024
1 parent 5986128 commit 15392c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/icinga2/client_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ func (client *Client) checkMissedChanges(ctx context.Context, objType string, ca
case catchupEventCh <- &catchupEventMsg{eventMsg: &eventMsg{ev, attrs.LastStateChange.Time()}}:
stateChangeEvents++
if fakeEv.Type == event.TypeAcknowledgementSet {
fakeEv.ID = 0 // We don't want to reference a previously sent event, so reset its ID!
select {
// Retry the AckSet event so that the author of the ack is set as the incident
// manager if there was no existing incident before the above state change event.
Expand Down

0 comments on commit 15392c9

Please sign in to comment.