item allocator should return same value for same key
When ItemAllocator.allocate called with same key again,
it is returning different value.
To fix this, we check if a value for key already exists in
self.allocations, and return that value if already exists.
Closes-bug: #1533216
Change-Id: I1f6191b07d33a1f542de18a942cefaf7ecb6c143
(cherry picked from commit 334dae0190f239a2cba4cebb9f8881e3817cee61)
Reviewed: https:/ /review. openstack. org/326141 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=87d12c9a0f9 693b006181743d0 c8ab05a52ca287
Committed: https:/
Submitter: Jenkins
Branch: stable/liberty
commit 87d12c9a0f9693b 006181743d0c8ab 05a52ca287
Author: venkata anil <email address hidden>
Date: Tue Jan 12 13:40:36 2016 +0000
item allocator should return same value for same key
When ItemAllocator. allocate called with same key again, allocations, and return that value if already exists.
it is returning different value.
To fix this, we check if a value for key already exists in
self.
Closes-bug: #1533216 f542de18a942cef af7ecb6c143 2cba4cebb9f8881 e3817cee61)
Change-Id: I1f6191b07d33a1
(cherry picked from commit 334dae0190f239a