mirror of
https://github.com/ceph/ceph
synced 2025-03-22 10:17:23 +00:00
Merge PR #28710 into master
* refs/pull/28710/head: cephfs-shell: Remove undefined variable files in do_rm() Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
commit
b71491a5ba
@ -843,9 +843,10 @@ sub-directories, files')
|
||||
"""
|
||||
Remove a specific file
|
||||
"""
|
||||
for path in args.paths:
|
||||
file_paths = args.paths
|
||||
for path in file_paths:
|
||||
if path.count('*') > 0:
|
||||
files.extend([i for i in get_all_possible_paths(
|
||||
file_paths.extend([i for i in get_all_possible_paths(
|
||||
path) if is_file_exists(i)])
|
||||
else:
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user