Skip to content

Commit

Permalink
Merge branch 'main' into feat-1363-new-workflow-ui-main
Browse files Browse the repository at this point in the history
  • Loading branch information
talboren authored Jul 23, 2024
2 parents 72153b0 + 68300d6 commit 7d7f936
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion keep/api/routes/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ async def create_workflow(
) -> WorkflowCreateOrUpdateDTO:
tenant_id = authenticated_entity.tenant_id
created_by = authenticated_entity.email
workflow = __get_workflow_raw_data(request=None, file=file)
workflow = await __get_workflow_raw_data(request=None, file=file)
workflowstore = WorkflowStore()
# Create the workflow
try:
Expand Down
6 changes: 3 additions & 3 deletions keep/providers/splunk_provider/splunk_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def _format_alert(
result: dict = event.get("result", event.get("_result", {}))

try:
raw: str = event.get("_raw", "{}")
raw: str = result.get("_raw", "{}")
raw_dict: dict = json.loads(raw)
except Exception as e:
logger = logging.getLogger(__name__)
Expand All @@ -178,9 +178,9 @@ def _format_alert(
"exception",
result.get(
"exception",
result.get("exception_class", raw_dict.get("exception_class")),
result.get("exception_class"),
),
)
) or raw_dict.get("exception_class", "")

# override stacktrace with _raw stacktrace if it doesnt exist in result
stacktrace = result.get("stacktrace", raw_dict.get("stacktrace", ""))
Expand Down

0 comments on commit 7d7f936

Please sign in to comment.