]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr/orchestrator: fix typo in comment
authorKefu Chai <kchai@redhat.com>
Tue, 12 Jan 2021 14:49:36 +0000 (22:49 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 15 Jan 2021 09:25:27 +0000 (17:25 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/mgr/orchestrator/_interface.py

index fb752663820c8c885a2d71047487f878f9eb598a..8d925ad19b1b7024d372546c6a917431c57b0e82 100644 (file)
@@ -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