From 4bc37ba3b53930589f2fcd3f137b45ea9872f9e6 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sat, 22 May 2021 13:33:40 -0400 Subject: [PATCH] pybind/mgr/mgr_module: fix help desc formatting Signed-off-by: Sage Weil --- src/pybind/mgr/mgr_module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/mgr_module.py b/src/pybind/mgr/mgr_module.py index 42469fc9a61..c89511dfc7d 100644 --- a/src/pybind/mgr/mgr_module.py +++ b/src/pybind/mgr/mgr_module.py @@ -317,7 +317,7 @@ class CLICommand(object): @staticmethod def load_func_metadata(f: HandlerFuncType) -> Tuple[str, Dict[str, Any], int, str]: - desc = inspect.getdoc(f) or '' + desc = (inspect.getdoc(f) or '').replace('\n', ' ') full_argspec = inspect.getfullargspec(f) arg_spec = full_argspec.annotations first_default = len(arg_spec) -- 2.39.5