Skip to content

Commit

Permalink
fix alert dictionary keys
Browse files Browse the repository at this point in the history
Signed-off-by: fbalak <[email protected]>
  • Loading branch information
fbalak committed May 22, 2024
1 parent a7ef10b commit a77d396
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ocs_ci/utility/prometheus.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def check_alert_list(
target_alerts = [
alert
for alert in target_alerts
if alert["message"] == msg
and alert["severity_level"] == severity
if alert["annotations"]["message"] == msg
and alert["annotations"]["severity_level"] == severity
and alert["state"] == state
]
assert_msg = (
Expand Down

0 comments on commit a77d396

Please sign in to comment.