]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephfs-shell: Fix flake8 line too long error 29374/head
authorVarsha Rao <varao@redhat.com>
Mon, 29 Jul 2019 11:41:37 +0000 (17:11 +0530)
committerVarsha Rao <varao@redhat.com>
Mon, 29 Jul 2019 11:45:35 +0000 (17:15 +0530)
https://tracker.ceph.com/issues/40992
Signed-off-by: Varsha Rao <varao@redhat.com>
src/tools/cephfs/cephfs-shell

index 544da9644ef2c61e3da5f66d764b38dcd4a3ee2f..ba4014a3b41ab9b1d5c464c33b7cc73f60c81302 100755 (executable)
@@ -182,7 +182,8 @@ def print_long(path, is_dir, human_readable):
     info = cephfs.stat(path)
     pretty = os.path.basename(path.decode('utf-8'))
     if is_dir:
-        pretty = colorama.Style.BRIGHT + colorama.Fore.CYAN + pretty + '/' + colorama.Style.RESET_ALL
+        pretty = colorama.Style.BRIGHT + colorama.Fore.CYAN + pretty + '/'
+        pretty += colorama.Style.RESET_ALL
     if human_readable:
         poutput('{}\t{:10s} {} {} {} {}'.format(
             mode_notation(info.st_mode),