Satish K
Committed by Gerrit Code Review

Resource Store Bug Fix: Query allocated resources based on consumer id always re…

…turn the Original continous resource value and not the allocated value of this consumer

Change-Id: I186a57783be1852c33d591c95b8ecebf32cfd56f
...@@ -138,6 +138,6 @@ class ConsistentContinuousResourceStore { ...@@ -138,6 +138,6 @@ class ConsistentContinuousResourceStore {
138 .flatMap(x -> x.value().allocations().stream() 138 .flatMap(x -> x.value().allocations().stream()
139 .map(y -> Maps.immutableEntry(x.value().original(), y))) 139 .map(y -> Maps.immutableEntry(x.value().original(), y)))
140 .filter(x -> x.getValue().consumer().equals(consumer)) 140 .filter(x -> x.getValue().consumer().equals(consumer))
141 - .map(x -> x.getKey()); 141 + .map(x -> (ContinuousResource) (x.getValue().resource()));
142 } 142 }
143 } 143 }
......