From 19f7213f12ee42a4d4c059c044e3dbd514559639 Mon Sep 17 00:00:00 2001 From: Varsha Rao Date: Fri, 5 Jul 2019 21:58:58 +0530 Subject: [PATCH] cephfs-shell: Fix TypeError in poutput() Fixes: https://tracker.ceph.com/issues/40679 Signed-off-by: Varsha Rao --- src/tools/cephfs/cephfs-shell | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tools/cephfs/cephfs-shell b/src/tools/cephfs/cephfs-shell index a91aa13402d..ad55f6cfd16 100755 --- a/src/tools/cephfs/cephfs-shell +++ b/src/tools/cephfs/cephfs-shell @@ -55,7 +55,7 @@ shell = None def poutput(s, end='\n'): - shell.poutput(s, end) + shell.poutput(s, end=end) def setup_cephfs(config_file): @@ -725,12 +725,12 @@ exists.') if dirs: paths.extend(dirs) else: - self.poutput(path, ':\n') + self.poutput(path, end=':\n') items = sorted(items, key=lambda item: item.d_name) else: if path != '' and path != cephfs.getcwd().decode( 'utf-8') and len(paths) > 1: - self.poutput(path, ':\n') + self.poutput(path, end=':\n') items = sorted(ls(path), key=lambda item: item.d_name) if not args.all: @@ -769,7 +769,7 @@ exists.') if not args.long: print_list(values, shutil.get_terminal_size().columns) if path != paths[-1]: - self.poutput('\n') + self.poutput('') def complete_rmdir(self, text, line, begidx, endidx): """ -- 2.39.5