Bug #39404
closedcephfs-shell: fix string decode for ls command
100%
Description
CephFS:~/>>> ls -l
startswith first arg must be bytes or a tuple of bytes, not str
Traceback (most recent call last):
File "/home/mchangir/work/mchangir-ceph.git/src/tools/cephfs/cephfs-shell", line 376, in onecmd
res = Cmd.onecmd(self, line)
File "/usr/lib/python3.7/site-packages/cmd2.py", line 2672, in onecmd
stop = func(statement)
File "/usr/lib/python3.7/site-packages/cmd2.py", line 496, in cmd_wrapper
return func(instance, args)
File "/home/mchangir/work/mchangir-ceph.git/src/tools/cephfs/cephfs-shell", line 717, in do_ls
items = [i for i in items if not i.d_name.startswith('.')]
File "/home/mchangir/work/mchangir-ceph.git/src/tools/cephfs/cephfs-shell", line 717, in <listcomp>
items = [i for i in items if not i.d_name.startswith('.')]
TypeError: startswith first arg must be bytes or a tuple of bytes, not str
Updated by Milind Changire about 5 years ago
- Status changed from New to Fix Under Review
Updated by Patrick Donnelly almost 5 years ago
- Has duplicate Bug #39617: cephfs-shell dumps backtrace on "ls" added
Updated by Patrick Donnelly almost 5 years ago
- Status changed from Fix Under Review to Pending Backport
- Assignee set to Milind Changire
- Priority changed from Normal to High
- Target version set to v15.0.0
- Source set to Development
- Backport set to nautilus
- ceph-qa-suite deleted (
fs)
Updated by Nathan Cutler almost 5 years ago
- Copied to Backport #39678: nautilus: cephfs-shell: fix string decode for ls command added
Updated by Nathan Cutler almost 5 years ago
- Status changed from Pending Backport to Resolved