Skip to content

Commit

Permalink
Merge branch 'NAS-132231' of github.com:freenas/freenas into NAS-132231
Browse files Browse the repository at this point in the history
  • Loading branch information
themylogin committed Jan 24, 2025
2 parents 47ed217 + f622a89 commit 2a5d365
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/middlewared/middlewared/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1066,8 +1066,8 @@ def event_subscribe(self, name, handler):
def event_register(self, name, description, *, private=False, returns=None, models=None, no_auth_required=False,
no_authz_required=False, roles=None):
"""
All events middleware can send should be registered, so they are properly documented
and can be browsed in documentation page without source code inspection.
All middleware events should be registered, so they are properly documented
and can be browsed in the API documentation without having to inspect source code.
"""
roles = roles or []
self.events.register(name, description, private, returns, models, no_auth_required, no_authz_required, roles)
Expand Down

0 comments on commit 2a5d365

Please sign in to comment.