.then(application -> requestGetApplicationSummary(application.getId()));
}
private Mono<String> launchTask(SummaryApplicationResponse application, AppDeploymentRequest request) {
return requestCreateTask(application.getId(), getCommand(application, request), memory(request), request.getDefinition().getName())
.map(CreateTaskResponse::getId);
<BUG>}
private int memory(AppDeploymentRequest request) {
return Optional.ofNullable(request.getDeploymentProperties().get(MEMORY_PROPERTY_KEY))
.map(Integer::parseInt)
.orElse(this.deploymentProperties.getMemory());</BUG>
}

.then(application -> requestGetApplicationSummary(application.getId()));
}
private Mono<String> launchTask(SummaryApplicationResponse application, AppDeploymentRequest request) {
return requestCreateTask(application.getId(), getCommand(application, request), memory(request), request.getDefinition().getName())
.map(CreateTaskResponse::getId);
}
