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
List<ResourceAllocation> allocations = resourceService.allocate(intent.id(), lambdaResources);
if (allocations.isEmpty()) {
log.info("Resource allocation for {} failed (resource request: {})", intent, lambdaResources);
return null;
}
return minLambda;
......