From: Kefu Chai Date: Tue, 12 Jan 2021 14:49:36 +0000 (+0800) Subject: pybind/mgr/orchestrator: fix typo in comment X-Git-Tag: v16.1.0~20^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=405f0e9b2d43b07d73ddfc7b21253ea5ffae4d83;p=ceph.git pybind/mgr/orchestrator: fix typo in comment Signed-off-by: Kefu Chai --- diff --git a/src/pybind/mgr/orchestrator/_interface.py b/src/pybind/mgr/orchestrator/_interface.py index fb752663820c..8d925ad19b1b 100644 --- a/src/pybind/mgr/orchestrator/_interface.py +++ b/src/pybind/mgr/orchestrator/_interface.py @@ -98,7 +98,7 @@ def handle_exception(prefix, perm, func): msg = 'This Orchestrator does not support `{}`'.format(prefix) return HandleCommandResult(-errno.ENOENT, stderr=msg) - # misuse partial to copy `wrapper` + # misuse lambda to copy `wrapper` wrapper_copy = lambda *l_args, **l_kwargs: wrapper(*l_args, **l_kwargs) wrapper_copy._prefix = prefix # type: ignore wrapper_copy._cli_command = CLICommand(prefix, perm) # type: ignore