]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/mgr_module: add CLICommand, CLIReadCommand, CLIWriteCommand aliases for CLIComman...
authorDavid Galloway <david.galloway@ibm.com>
Thu, 26 Mar 2026 21:42:28 +0000 (17:42 -0400)
committerDavid Galloway <david.galloway@ibm.com>
Fri, 27 Mar 2026 12:56:42 +0000 (08:56 -0400)
The mgr daemon binary and built-in modules import CLICommand,
CLIReadCommand, and CLIWriteCommand by name. Adding aliases so existing
code continues to work while the new CLICommandBase name is introduced.

Signed-off-by: David Galloway <david.galloway@ibm.com>
src/pybind/mgr/mgr_module.py

index fa566fcbd60b74ea5d16accd4f6eb146eaf99dba..b6564b69880a9e6e057ad634f9ec16d462278179 100644 (file)
@@ -561,6 +561,13 @@ class CLICommandBase(object):
         })
 
 
+# Backward-compatible alias: the mgr daemon binary imports CLICommand by name
+CLICommand = CLICommandBase
+# Backward-compatible aliases for built-in modules that import these names
+CLIReadCommand = CLICommandBase.Read
+CLIWriteCommand = CLICommandBase.Write
+
+
 def CLICheckNonemptyFileInput(desc: str) -> Callable[[HandlerFuncType], HandlerFuncType]:
     def CheckFileInput(func: HandlerFuncType) -> HandlerFuncType:
         @functools.wraps(func)