From 405f0e9b2d43b07d73ddfc7b21253ea5ffae4d83 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 12 Jan 2021 22:49:36 +0800 Subject: [PATCH] pybind/mgr/orchestrator: fix typo in comment Signed-off-by: Kefu Chai --- src/pybind/mgr/orchestrator/_interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/orchestrator/_interface.py b/src/pybind/mgr/orchestrator/_interface.py index fb752663820c8..8d925ad19b1b7 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 -- 2.39.5