Skip to content

Commit

Permalink
cephfs-shell: fix rm command
Browse files Browse the repository at this point in the history
Signed-off-by: Milind Changire <mchangir@redhat.com>
(cherry picked from commit 3840d51)
  • Loading branch information
mchangir authored and smithfarm committed Apr 18, 2019
1 parent ebe75b6 commit f48171f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tools/cephfs/cephfs-shell
Expand Up @@ -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):
"""
Expand Down

0 comments on commit f48171f

Please sign in to comment.