Actions
Bug #36368
closedcephfs/tool: cephfs-shell have "no attribute 'decode'" err
% Done:
0%
Source:
Community (dev)
Tags:
Backport:
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
cephfs-shell have "no attribute 'decode'" err, as follow:
[root@star /]# python3 cephfs-shell CephFS:~/>>> ls 'str' object has no attribute 'decode' Traceback (most recent call last): File "cephfs-shell", line 367, in onecmd res = Cmd.onecmd(self, line) File "/usr/lib/python3.4/site-packages/cmd2/cmd2.py", line 2050, in onecmd stop = func(statement) File "/usr/lib/python3.4/site-packages/cmd2/cmd2.py", line 241, in cmd_wrapper return func(instance, args) File "cephfs-shell", line 571, in do_ls items = [i for i in items if not i.d_name.decode( File "cephfs-shell", line 571, in <listcomp> items = [i for i in items if not i.d_name.decode( AttributeError: 'str' object has no attribute 'decode'
Updated by huanwen ren over 5 years ago
Other Place
[root@star /]# python3 cephfs-shell CephFS:~/>>> ls 'str' object has no attribute 'decode' Traceback (most recent call last): File "cephfs-shell", line 367, in onecmd res = Cmd.onecmd(self, line) File "/usr/lib/python3.4/site-packages/cmd2/cmd2.py", line 2050, in onecmd stop = func(statement) File "/usr/lib/python3.4/site-packages/cmd2/cmd2.py", line 241, in cmd_wrapper return func(instance, args) File "cephfs-shell", line 581, in do_ls path = item.d_name.decode('utf-8') AttributeError: 'str' object has no attribute 'decode'
Updated by Patrick Donnelly over 5 years ago
- Status changed from New to Fix Under Review
- Assignee set to huanwen ren
- Priority changed from Normal to High
- Target version set to v14.0.0
- Start date deleted (
10/10/2018) - Source set to Community (dev)
- Affected Versions deleted (
v14.0.0) - Component(FS) cephfs-shell added
Updated by Patrick Donnelly over 5 years ago
- Status changed from Fix Under Review to Resolved
Actions