Sho SHIMIZU
Committed by Gerrit Code Review

Ensure returning null on allocation failure

Change-Id: Ifdc5354b8b00ec4f87ed20a1b877abfe576c31ac
...@@ -189,6 +189,7 @@ public class OpticalConnectivityIntentCompiler implements IntentCompiler<Optical ...@@ -189,6 +189,7 @@ public class OpticalConnectivityIntentCompiler implements IntentCompiler<Optical
189 List<ResourceAllocation> allocations = resourceService.allocate(intent.id(), lambdaResources); 189 List<ResourceAllocation> allocations = resourceService.allocate(intent.id(), lambdaResources);
190 if (allocations.isEmpty()) { 190 if (allocations.isEmpty()) {
191 log.info("Resource allocation for {} failed (resource request: {})", intent, lambdaResources); 191 log.info("Resource allocation for {} failed (resource request: {})", intent, lambdaResources);
192 + return null;
192 } 193 }
193 194
194 return minLambda; 195 return minLambda;
......