From d5efa9caaea1cfc8811542a97b761099cf3f8b32 Mon Sep 17 00:00:00 2001 From: Pavani Rajula Date: Tue, 14 Aug 2018 23:56:53 +0530 Subject: [PATCH] tools/cephfs-shell:changed output representation for the commands cwd and ls Signed-off-by: Pavani Rajula --- src/tools/cephfs/cephfs-shell | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/cephfs/cephfs-shell b/src/tools/cephfs/cephfs-shell index 2f305d1df45bf..a71485a9dfc15 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): """ -- 2.39.5