]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cephfs-shell: Fix TypeError in poutput()
authorVarsha Rao <varao@redhat.com>
Fri, 5 Jul 2019 16:28:58 +0000 (21:58 +0530)
committerVarsha Rao <varao@redhat.com>
Fri, 5 Jul 2019 16:31:27 +0000 (22:01 +0530)
Fixes: https://tracker.ceph.com/issues/40679
Signed-off-by: Varsha Rao <varao@redhat.com>
src/tools/cephfs/cephfs-shell

index a91aa13402ddbb9e4a411679446b154d0c3aa95e..ad55f6cfd16f43dd3148d1eca0283cf83a72e19a 100755 (executable)
@@ -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):
         """