Python 3: AttributeError in find_resource
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-keystoneclient |
Fix Released
|
Medium
|
Cyril Roelandt |
Bug Description
When running tests from keystoneclient/
=======
ERROR: keystoneclient.
-------
testtools.
File "/home/
output = utils.find_
File "/home/
name_or_id = name_or_
AttributeError: 'str' object has no attribute 'decode'
name_or_id is probably a text string in Python, and therefore it cannot be decoded.
Changed in python-keystoneclient: | |
assignee: | nobody → Cyril Roelandt (cyril-roelandt) |
status: | New → In Progress |
Changed in python-keystoneclient: | |
importance: | Undecided → Medium |
Changed in python-keystoneclient: | |
milestone: | none → 0.4.2 |
Changed in python-keystoneclient: | |
status: | Fix Committed → Fix Released |
Reviewed: https:/ /review. openstack. org/62386 /git.openstack. org/cgit/ openstack/ python- keystoneclient/ commit/ ?id=f9e3b7adc98 0ae6722dfa59f87 85ccaa4dc45c04
Committed: https:/
Submitter: Jenkins
Branch: master
commit f9e3b7adc980ae6 722dfa59f8785cc aa4dc45c04
Author: Cyril Roelandt <email address hidden>
Date: Mon Dec 16 15:52:24 2013 +0100
Do not try to call decode() on a text string
This fixes a call to 'isinstance' that only worked on Python2.
Closes-Bug: #1265879 314de92be8aecb3 54ee3124e6d
Change-Id: I886da95f1ad2a8