Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nautilus: cephfs-shell: name 'files' is not defined error in do_rm() #29158

Merged
merged 1 commit into from Aug 5, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/tools/cephfs/cephfs-shell
Expand Up @@ -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:
Expand Down