From: Pavani Rajula Date: Tue, 14 Aug 2018 18:26:53 +0000 (+0530) Subject: tools/cephfs-shell:changed output representation for the commands cwd and ls X-Git-Tag: v14.0.1~568^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d5efa9caaea1cfc8811542a97b761099cf3f8b32;p=ceph.git tools/cephfs-shell:changed output representation for the commands cwd and ls Signed-off-by: Pavani Rajula --- diff --git a/src/tools/cephfs/cephfs-shell b/src/tools/cephfs/cephfs-shell index 2f305d1df45b..a71485a9dfc1 100644 --- a/src/tools/cephfs/cephfs-shell +++ b/src/tools/cephfs/cephfs-shell @@ -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): """