From 59b48f61c1e5d9e20a6457668cd0db8d7e4be748 Mon Sep 17 00:00:00 2001 From: tengjie5 Date: Fri, 28 Jun 2024 10:14:34 +0800 Subject: [PATCH] cephfs-shell: excute cmd 'rmdir_helper' reported error Fixes: https://tracker.ceph.com/issues/66735 Signed-off-by: teng jie (cherry picked from commit d8c3c45e00c1c2716365281fb51f66b8edee523a) --- src/tools/cephfs/shell/cephfs-shell | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tools/cephfs/shell/cephfs-shell b/src/tools/cephfs/shell/cephfs-shell index b7e8c55e21e..456f0c084ea 100755 --- a/src/tools/cephfs/shell/cephfs-shell +++ b/src/tools/cephfs/shell/cephfs-shell @@ -1014,9 +1014,9 @@ class CephFSShell(Cmd): @with_argparser(rmdir_parser) def do_rmdir(self, args): - self.do_rmdir_helper(args) + self._rmdir(args) - def do_rmdir_helper(self, args): + def _rmdir(self, args): """ Remove a specific Directory """ @@ -1531,7 +1531,7 @@ class CephFSShell(Cmd): try: if is_dir_exists(snap_dir): newargs = argparse.Namespace(paths=[snap_dir], parent=False) - self.do_rmdir_helper(newargs) + self._rmdir(newargs) else: set_exit_code_msg(errno.ENOENT, "'{}': no such snapshot".format( args.name.decode('utf-8'))) -- 2.39.5