Skip to content

Commit

Permalink
refactor(engine): Remove action_title from ActionRunResult
Browse files Browse the repository at this point in the history
  • Loading branch information
daryllimyt committed Mar 4, 2024
1 parent 17bbe90 commit a793212
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tracecat/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ class ActionRunResult(BaseModel):

id: str = Field(default_factory=lambda: uuid4().hex)
action_key: str = Field(pattern=ACTION_KEY_PATTERN, max_length=50)
action_title: str = Field(pattern=ALNUM_AND_WHITESPACE_PATTERN, max_length=50)
data: dict[str, Any] = Field(default_factory=dict)
should_continue: bool = True

Expand Down Expand Up @@ -478,7 +477,7 @@ async def run_action(
except Exception as e:
custom_logger.error(f"Error running action {title} with key {key}.", exc_info=e)
raise
return ActionRunResult(action_key=key, action_title=title, data=result)
return ActionRunResult(action_key=key, data=result)


async def run_webhook_action(
Expand Down

0 comments on commit a793212

Please sign in to comment.