]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tools/cephfs-shell:changed output representation for the commands cwd and ls
authorPavani Rajula <rpavani1998@gmail.com>
Tue, 14 Aug 2018 18:26:53 +0000 (23:56 +0530)
committerPavani Rajula <rpavani1998@gmail.com>
Fri, 17 Aug 2018 18:07:05 +0000 (23:37 +0530)
Signed-off-by: Pavani Rajula <rpavani1998@gmail.com>
src/tools/cephfs/cephfs-shell

index 2f305d1df45bf2949e029db4ceaefe1ab3aa5918..a71485a9dfc15aa8cac25f691837890ac012fba2 100644 (file)
@@ -224,7 +224,7 @@ def print_list(shell, words, termwidth=79):
             word = words[i]
             if word[0] == '\x1b':
                 shell.poutput(
-                    '%-*s' % (width + 9, words[i]), end='\n' if i + nrows >= nwords else '')
+                    '%-*s' % (width + 10, words[i]), end='\n' if i + nrows >= nwords else '')
             else:
                 shell.poutput(
                     '%-*s' % (width, words[i]), end='\n' if i + nrows >= nwords else '')
@@ -722,7 +722,7 @@ sub-directories, files')
         """
         Get current working directory.
         """
-        self.poutput(cephfs.getcwd())
+        self.poutput(cephfs.getcwd().decode('utf-8'))
 
     def complete_chmod(self, text, line, begidx, endidx):
         """