Skip to content

Commit

Permalink
Fix all new-style API methods being CLI-private (#15081)
Browse files Browse the repository at this point in the history
  • Loading branch information
themylogin authored Dec 3, 2024
1 parent e5b4392 commit 17cd3bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middlewared/middlewared/service/core_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def get_methods(self, app, service, target):
# Skip private methods
if hasattr(method, '_private') and method._private is True:
continue
if target == 'CLI' and hasattr(method, '_cli_private'):
if target == 'CLI' and getattr(method, '_cli_private', False):
continue

# terminate is a private method used to clean up a service on shutdown
Expand Down

0 comments on commit 17cd3bb

Please sign in to comment.