Capabilities class __repr__ still crashes after fix committed
Bug #1785091 reported by
Rajat Dhasmana
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-cinderclient |
Fix Released
|
Undecided
|
Rajat Dhasmana |
Bug Description
Initially the AttributeError could be generated via the following steps:
In python console, execute the following
from cinderclient.v2 import capabilities
cap = capabilities.
print(cap)
The initial patch fixed the issue but the merged patch still throws
error
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/
if self._info[
KeyError: 'namespace'
Patch Link : https:/
Changed in python-cinderclient: | |
assignee: | nobody → Rajat Dhasmana (whoami-rajat) |
Changed in python-cinderclient: | |
status: | New → In Progress |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/588346 /git.openstack. org/cgit/ openstack/ python- cinderclient/ commit/ ?id=b3487484d82 50ef7036e75d8db d85e30d629a35e
Committed: https:/
Submitter: Zuul
Branch: master
commit b3487484d8250ef 7036e75d8dbd85e 30d629a35e
Author: whoami-rajat <email address hidden>
Date: Thu Aug 2 17:06:05 2018 +0000
__repr__ crashes when empty dict passed
The Capabilities class __repr__ method crashes when
along with any manager object, the info is passed as
empty dict.
This patch handles the issue.
Change-Id: Ife5cfc82137d10 7b27b011aa83c3a 9c89e78d701
Closes-Bug: #1785091