(ep) -> prepareContext(state, computeDesc, resourcePool, ep, environmentLink));
return;
}
if (environmentLink == null) {
String contextId = RequestUtils.getContextId(state);
<BUG>NetworkProfileQueryUtils.getNetworkProfileConstraintsForComputeNics(getHost(),
</BUG>
UriUtils.buildUri(getHost(), getSelfLink()), state.tenantLinks, contextId,
computeDesc,
<BUG>(networkProfileLinks, e) -> {
if (e != null) {
failTask("Error getting network profile constraints: ", e);
</BUG>
return;

(ep) -> prepareContext(state, computeDesc, resourcePool, ep, environmentLink));
return;
}
if (environmentLink == null) {
String contextId = RequestUtils.getContextId(state);
NetworkProfileQueryUtils.getEnvironmentsForComputeNics(getHost(),
UriUtils.buildUri(getHost(), getSelfLink()), state.tenantLinks, contextId,
computeDesc,
(environmentLinks, e) -> {
if (e != null) {
failTask("Error getting environment constraints: ", e);
return;
