From fc5c533c786e9fca4a76c57e60f9acb96d718a57 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sat, 26 Dec 2020 17:34:30 +0800 Subject: [PATCH] pybind/mgr: keep the docstring of func wrapped by CLICheckNonemptyFileInput Signed-off-by: Kefu Chai --- src/pybind/mgr/mgr_module.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pybind/mgr/mgr_module.py b/src/pybind/mgr/mgr_module.py index 66e3f4caf73..99ff3647f9b 100644 --- a/src/pybind/mgr/mgr_module.py +++ b/src/pybind/mgr/mgr_module.py @@ -12,6 +12,7 @@ if TYPE_CHECKING: import logging import errno +import functools import json import threading from collections import defaultdict, namedtuple @@ -359,6 +360,7 @@ def CLIWriteCommand(prefix, args="", desc=""): def CLICheckNonemptyFileInput(func): + @functools.wraps(func) def check(*args, **kwargs): if not 'inbuf' in kwargs: return -errno.EINVAL, '', ERROR_MSG_NO_INPUT_FILE -- 2.47.3