]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cephfs-shell: excute cmd 'rmdir_helper' reported error
authortengjie5 <tengjie5@asiainfo.com>
Fri, 28 Jun 2024 02:14:34 +0000 (10:14 +0800)
committerXiubo Li <xiubli@redhat.com>
Thu, 25 Jul 2024 02:30:29 +0000 (10:30 +0800)
Fixes: https://tracker.ceph.com/issues/66735
Signed-off-by: teng jie <tengjie5@asiainfo.com>
(cherry picked from commit d8c3c45e00c1c2716365281fb51f66b8edee523a)

src/tools/cephfs/shell/cephfs-shell

index b7e8c55e21e80b9b30c4a1abd3a0e3841526326b..456f0c084eaf5175e12f1fe11268b87c6c4c7ce5 100755 (executable)
@@ -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')))