Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix alerts assignment when event is None #103

Merged
merged 2 commits into from
Nov 27, 2023
Merged

Fix alerts assignment when event is None #103

merged 2 commits into from
Nov 27, 2023

Conversation

sed-i
Copy link
Contributor

@sed-i sed-i commented Nov 25, 2023

Issue

The nrpe targets changed event hook is sometimes called without an event arg. In such cases we cannot obtain alerts from event attributes.

Solution

Obtain alerts from stored state. This is the same as #94, but follows-up #100.

Fixes #102.

Context

Testing Instructions

See newly added utest. Before this change, the utest would fail with the same error reported in #102.

Release Notes

@sed-i sed-i merged commit b799ee0 into main Nov 27, 2023
13 checks passed
@sed-i sed-i deleted the fix/event_is_none branch November 27, 2023 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

downstream-prometheus-scrape-relation-joined hook crashes in rev 51
2 participants