]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephfs-shell: Remove undefined variable files in do_rm() 28710/head
authorVarsha Rao <varao@redhat.com>
Mon, 24 Jun 2019 08:24:19 +0000 (13:54 +0530)
committerVarsha Rao <varao@redhat.com>
Tue, 25 Jun 2019 08:53:27 +0000 (14:23 +0530)
Instead of args.paths list use file_paths.

Fixes: https://tracker.ceph.com/issues/40489
Signed-off-by: Varsha Rao <varao@redhat.com>
src/tools/cephfs/cephfs-shell

index a91aa13402ddbb9e4a411679446b154d0c3aa95e..88f6ba48867ee36463ada0b7106dec237ca52c23 100755 (executable)
@@ -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: