]> 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:31:27 +0000 (10:31 +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 9449007a80b9749c7a9007b106b4f85310cb070c..9df0f900604a91eb0b0e78e06849d18914e442d6 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
         """
@@ -1532,7 +1532,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')))