Project

General

Profile

Actions

Bug #36368

closed

cephfs/tool: cephfs-shell have "no attribute 'decode'" err

Added by huanwen ren over 5 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
High
Assignee:
huanwen ren
Category:
-
Target version:
% 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'
Actions

Also available in: Atom PDF