Wrong representation of Attributes
Bug #1473974 reported by
Sergey Kraynev
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Low
|
Sergey Kraynev |
Bug Description
If you try to display Attributes class during debugging or via str() function you will get follow traceback:
File "heat/engine/
'\n\
TypeError: sequence item 0: expected string, Attribute found
It happens due to "join" expect list, but six.itervalues(
instead of self._attributes.
Changed in heat: | |
status: | New → In Progress |
Changed in heat: | |
importance: | Undecided → Low |
Changed in heat: | |
milestone: | none → liberty-2 |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | liberty-2 → 5.0.0 |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/200059 /git.openstack. org/cgit/ openstack/ heat/commit/ ?id=658d61ecee1 75036b81b0c6897 587c0506a07679
Committed: https:/
Submitter: Jenkins
Branch: master
commit 658d61ecee17503 6b81b0c6897587c 0506a07679
Author: Sergey Kraynev <email address hidden>
Date: Thu Jul 9 08:48:21 2015 -0400
Use __iter__ method of Attributes class in __repr__ method
Join method expects list, but six.itervalues( self._attribute s) returns
a Attribute instance, so we should use own __iter__ method for building
list of values.
Closes-Bug: #1473974
Change-Id: I7c5d4a5a8d0142 156c3416347940b 9e90ed8df5c