Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions keep/providers/base/base_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ def _enrich(self, enrichments, results, audit_enabled=True):

if isinstance(foreach_context, AlertDto):
fingerprint = foreach_context.fingerprint
event = foreach_context
# if we are in a dict context, use the fingerprint from the dict
elif isinstance(foreach_context, dict) and "fingerprint" in foreach_context:
fingerprint = foreach_context.get("fingerprint")
Expand Down
2 changes: 1 addition & 1 deletion keep/providers/site24x7_provider/site24x7_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def _format_alert(

labels = event.get("LABELS", "")
if isinstance(labels, str) and labels:
labels = [part.strip() for part in labels.split(",") if part.strip()]
labels = [lbl.strip() for lbl in labels.split(",") if lbl.strip()]
elif not isinstance(labels, list):
labels = []

Expand Down
Loading