Actions
Bug #40679
closedcephfs-shell: TypeError in poutput
% Done:
0%
Source:
Development
Tags:
Backport:
nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
cephfs-shell
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
Recent changes in signature of poutput method from cmd2 module causes the following error.
CephFS:~/>>> mkdir test CephFS:~/>>> ls poutput() takes 2 positional arguments but 3 were given Traceback (most recent call last): File "../src/tools/cephfs/cephfs-shell", line 392, in onecmd res = Cmd.onecmd(self, line) File "/home/varsha/ceph/build/venv/lib/python3.7/site-packages/cmd2/cmd2.py", line 2145, in onecmd stop = func(statement) File "/home/varsha/ceph/build/venv/lib/python3.7/site-packages/cmd2/cmd2.py", line 286, in cmd_wrapper return func(cmd2_instance, args) File "../src/tools/cephfs/cephfs-shell", line 770, in do_ls print_list(values, shutil.get_terminal_size().columns) File "../src/tools/cephfs/cephfs-shell", line 239, in print_list end='\n' if i + nrows >= nwords else '') File "../src/tools/cephfs/cephfs-shell", line 58, in poutput shell.poutput(s, end) TypeError: poutput() takes 2 positional arguments but 3 were given
Actions