Skip to content

Commit

Permalink
Address review
Browse files Browse the repository at this point in the history
  • Loading branch information
themylogin committed Jan 24, 2025
1 parent 2a5d365 commit 5f2da30
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/middlewared/middlewared/api/base/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from .model import BaseModel


@dataclass(slots=True, frozen=True)
@dataclass(slots=True, frozen=True, kw_only=True)
class Event:
"""
Represents a middleware API event
Expand Down
8 changes: 4 additions & 4 deletions src/middlewared/middlewared/plugins/alert.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,10 @@ class Config:
cli_namespace = "system.alert"
events = [
Event(
"alert.list",
"Sent on alert changes.",
["ALERT_LIST_READ"],
{
name="alert.list",
description="Sent on alert changes.",
roles=["ALERT_LIST_READ"],
models={
"ADDED": AlertListAddedEvent,
"CHANGED": AlertListChangedEvent,
"REMOVED": AlertListRemovedEvent,
Expand Down

0 comments on commit 5f2da30

Please sign in to comment.