]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Sort list of cinder_object.changes
authorThang Pham <thang.g.pham@gmail.com>
Wed, 25 Mar 2015 14:54:23 +0000 (10:54 -0400)
committerThang Pham <thang.g.pham@gmail.com>
Wed, 25 Mar 2015 14:54:23 +0000 (10:54 -0400)
commit32d70f493a42bb0525113bcbe88c1ecf96a24cea
tree76af9e87ee961c666faa0742cb157b6e14b95d71
parent7be2ac940f93cdda6a7b220b6b494fb525fafee2
Sort list of cinder_object.changes

If PYTHONHASHSEED is set to a non-zero value,
test_objects.TestObject.test_base_attributes unit test
fails.  This is because 'cinder_object.changes' key is
an unsorted list when the object is converted to a
primitive.  The following patch fixes this by sorting
cinder_object.changes.

Change-Id: I3a80396c5c897de26e982fa6426e7720a09c1375
Closes-Bug: #1434154
cinder/objects/base.py
cinder/tests/objects/test_objects.py