1
0
mirror of https://github.com/ceph/ceph synced 2025-03-22 10:17:23 +00:00

Merge PR 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:
Patrick Donnelly 2019-07-12 17:16:02 -07:00
commit b71491a5ba
No known key found for this signature in database
GPG Key ID: 3A2A7E25BEA8AADB

View File

@ -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: