]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cephfs-shell: Remove unused 'flag' variable
authorVarsha Rao <varao@redhat.com>
Mon, 13 May 2019 12:11:06 +0000 (17:41 +0530)
committerVarsha Rao <varao@redhat.com>
Mon, 13 May 2019 12:34:02 +0000 (18:04 +0530)
This patch fixes flake8 unused local variable error.

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

index 2c012f8296576a902f419a6933c24d541a768f5d..fb0a84bfde411b919947b87afadc82ae16c80651 100755 (executable)
@@ -722,7 +722,6 @@ exists.')
             if not args.all:
                 items = [i for i in items if not i.d_name.startswith(b'.')]
 
-            flag = 0
             if args.S:
                 items = sorted(items, key=lambda item: cephfs.stat(
                     to_bytes(dir_name + '/' + item.d_name.decode('utf-8'))).st_size)