From: David Galloway Date: Thu, 26 Mar 2026 21:42:28 +0000 (-0400) Subject: mgr/mgr_module: add CLICommand, CLIReadCommand, CLIWriteCommand aliases for CLIComman... X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=05966e6f0b44b74b2e55d26b16b4ce3f8fd67331;p=ceph.git mgr/mgr_module: add CLICommand, CLIReadCommand, CLIWriteCommand aliases for CLICommandBase 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 --- diff --git a/src/pybind/mgr/mgr_module.py b/src/pybind/mgr/mgr_module.py index fa566fcbd60b..b6564b69880a 100644 --- a/src/pybind/mgr/mgr_module.py +++ b/src/pybind/mgr/mgr_module.py @@ -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)