From: Milind Changire Date: Sat, 13 Apr 2019 06:40:42 +0000 (+0530) Subject: cephfs-shell: fix rm command X-Git-Tag: v15.1.0~2908^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=3840d51452246bb7d8b98327c98ef8bf18c1cb92;p=ceph-ci.git cephfs-shell: fix rm command Signed-off-by: Milind Changire --- diff --git a/src/tools/cephfs/cephfs-shell b/src/tools/cephfs/cephfs-shell index ef1cb3bfa85..fd9122f3e54 100755 --- a/src/tools/cephfs/cephfs-shell +++ b/src/tools/cephfs/cephfs-shell @@ -778,7 +778,10 @@ sub-directories, files') files.extend([i for i in get_all_possible_paths( file_path) if is_file_exists(i)]) else: - cephfs.unlink(to_bytes(file_path)) + try: + cephfs.unlink(to_bytes(file_path)) + except: + self.poutput('%s: no such file' % file_path) def complete_mv(self, text, line, begidx, endidx): """