nova client breaks if object has None for name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-novaclient |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
On one of our test systems we've managed to get some images that have no name. This doesn't worry the glance client, and didn't worry nova client either until recently, but now it's broken.
(toto)gavinstbj
ERROR: <type 'NoneType'> can't be decoded
I've narrowed it down to a recent code change :
Author: Chris Buccella <email address hidden> 2014-01-04 23:56:09
Committer: Chris Buccella <email address hidden> 2014-01-04 23:56:09
Parent: ab32e406c80c14a
Child: 77a9574238d416b
@@ -442,7 +442,7 @@ class Resource(object):
for bash completion.
"""
if self.NAME_ATTR in self.__dict__ and self.HUMAN_ID:
- return utils.slugify(
+ return strutils.
return None
Which breaks if any object has a name attribute set to None.
managed to miss the sha tag for the change that broke it : 3dbab161bed7659 eb976f0961ae522 6da34b16f9