Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nautilus: cephfs-shell: TypeError in poutput #29156

Merged
merged 1 commit into from Aug 5, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/tools/cephfs/cephfs-shell
Expand Up @@ -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):
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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):
"""
Expand Down