Instead of args.paths list use file_paths.
Fixes: https://tracker.ceph.com/issues/40489
Signed-off-by: Varsha Rao <varao@redhat.com>
(cherry picked from commit
26daf81c1cc563ec1303321f801e93a9ca2adb7d)
"""
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: