Cell mappings don't require a name, so when listing
cells, if any mappings don't have a name, the sorted
function will fail with a TypeError since you can't compare
None to a string.
This fixes the issue by using the empty string if the cell
mapping name is None.
Reviewed: https:/ /review. openstack. org/599861 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=a4f1274f405 13d0a350a38c6e3 89c9a76c272379
Committed: https:/
Submitter: Zuul
Branch: master
commit a4f1274f40513d0 a350a38c6e389c9 a76c272379
Author: Matt Riedemann <email address hidden>
Date: Tue Sep 4 18:28:21 2018 -0400
Fix TypeError in nova-manage cell_v2 list_cells
Cell mappings don't require a name, so when listing
cells, if any mappings don't have a name, the sorted
function will fail with a TypeError since you can't compare
None to a string.
This fixes the issue by using the empty string if the cell
mapping name is None.
Change-Id: I4fc9d8d1a96f1e c722c2c92dead3f 5c4c94d4382
Closes-Bug: #1790695