diff options
| author | Mauro S. M. Rodrigues <maurosr@linux.vnet.ibm.com> | 2012-09-21 14:21:00 -0400 |
|---|---|---|
| committer | Matthew Treinish <treinish@linux.vnet.ibm.com> | 2012-09-27 13:33:41 -0400 |
| commit | 24e6e4f4963ab5cd837bb657a157033b3ad9df33 (patch) | |
| tree | 0ad8d4b8627b676de9855e5fcbfdb297ba6c9ad4 /nova/openstack | |
| parent | 3ea56ce6c8d0dd6f1671e4519423c4dcce235b7a (diff) | |
| download | nova-24e6e4f4963ab5cd837bb657a157033b3ad9df33.tar.gz nova-24e6e4f4963ab5cd837bb657a157033b3ad9df33.tar.xz nova-24e6e4f4963ab5cd837bb657a157033b3ad9df33.zip | |
Enable list with no dict objects to be sorted in api samples
So far we had only dicts to be sorted. Although Aggregates extension has a
response case which a list of strings is returned and the current key
attribute didn't checked if the instance was a dict or another object which
caused a break in the use case above. This fix this, and use None as key to
compare if the element is not a dictionary instance.
Change-Id: Id5d31d1d2ad88fb538d8a9637a1969b179dd93ab
Diffstat (limited to 'nova/openstack')
0 files changed, 0 insertions, 0 deletions
