commit 7651b596a3f4d254220ae7da447a07e748908ab3
Author: Rui Chen <email address hidden>
Date: Sat Nov 28 18:15:52 2015 +0800
Fix Resource.__eq__ mismatch semantics of object equal
The __eq__ of apiclient.base.Resource will return True,
if the two objects have same id, even if they have different
other attributes value. The behavior is weird and don't
match the semantics of object equal. The objects that have
different value should be different objects.
Fix this issue and add some test cases in this patch.
Reviewed: https:/ /review. openstack. org/251032 /git.openstack. org/cgit/ openstack/ python- glanceclient/ commit/ ?id=7651b596a3f 4d254220ae7da44 7a07e748908ab3
Committed: https:/
Submitter: Jenkins
Branch: master
commit 7651b596a3f4d25 4220ae7da447a07 e748908ab3
Author: Rui Chen <email address hidden>
Date: Sat Nov 28 18:15:52 2015 +0800
Fix Resource.__eq__ mismatch semantics of object equal
The __eq__ of apiclient. base.Resource will return True,
if the two objects have same id, even if they have different
other attributes value. The behavior is weird and don't
match the semantics of object equal. The objects that have
different value should be different objects.
Fix this issue and add some test cases in this patch.
Change-Id: I24ba39bf90d727 116f256de462417 46520efbfee
Closes-Bug: #1499369