Skip to content

Commit

Permalink
fix: another one
Browse files Browse the repository at this point in the history
  • Loading branch information
talboren committed Oct 24, 2024
1 parent 0ab81c9 commit ef8fdf4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions keep/api/routes/alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,6 @@ def enrich_alert(

def _enrich_alert(
enrich_data: EnrichAlertRequestBody,
pusher_client: Pusher | None = get_pusher_client(),
authenticated_entity: AuthenticatedEntity = Depends(
IdentityManagerFactory.get_auth_verifier(["write:alert"])
),
Expand All @@ -479,7 +478,6 @@ def _enrich_alert(
"tenant_id": tenant_id,
},
)

try:
enrichement_bl = EnrichmentsBl(tenant_id)
# Shahar: TODO, change to the specific action type, good enough for now
Expand Down Expand Up @@ -540,6 +538,7 @@ def _enrich_alert(
logger.exception("Failed to push alert to elasticsearch")
pass
# use pusher to push the enriched alert to the client
pusher_client = get_pusher_client()
if pusher_client:
logger.info("Telling client to poll alerts")
try:
Expand Down

0 comments on commit ef8fdf4

Please sign in to comment.